I can't seem to get my keyboard to accept input and I'm not sure why. I have flushed the buffer (or so I think I did) and all I'm getting is BCS.
This is my menu function
//Menu
int menu() {
int choice;
do {
printf("1)Move\n2)Display Maze\n3)Peek ahead\n");
scanf("%i", &choice);
while(getchar() != '\n');
} while(choice<=0 && choice>3);
return choice;
}//end menu
This is in my main. I print the maze out first and then display the menu
printMaze(maze);
do
{
choice = menu();
if(choice == 1)
{
//direction = readDirection();
//move(maze, direction);
printf("Hi\n");
}// end choice
else if(choice ==2)
//displayMaze(maze);
printf("Hello\n");
else
//peek(maze);
printf("Goodbye\n");
} while(choice!=4);//hag doesn't kill me or i find the exit)