I'm trying to code the game of Simon(try to mimic the computers choice of four buttons) for a project. I'm kind of stuck because the computer generates a random choice, but I need to completely halt and wait for the user to enter his choice.(Done with the aswd keys; either up, down, left, or right) How can I do this? I'm trying to use _kbhit but it's not working as intended.
Any help would be greatly appreciated.