I started messing around with C to improve my programming skills, and decided to try and implement the Tetris game. Nothing special, it will work on the console.
I have never implemented a game that continues to work despite user input, and did not realize that I would have to deal with this problem until I started thinking about the game algorithm.
Googling for a solution. I came up with the _kbhit () function, but I program on a Linux box, and this function is only available on Windows. How can i do this?
liewl source
share