Why does getch() interrupt my display() method?
I’m trying to write 2048 game (a simple puzzle game, you can find it easily online if you don’t know it) in python and I’ve run into a problem.
When I use input() to get user input everything works great but when I use getch() the current_board.display() method gets interrupted somehow and prints only 3 upper rows when i first run the program, and after every move it prints the last row of the previous state of the board at the top, and 3 upper rows of the current state under it.
Please ignore all other issues with the code