I'm trying to create a simple game, where a user moves an 'X' across the screen to try and get to an 'O'. It requires me to use the arrows (up, down, left, right) and I don't know how to program this. I've looked around online and seen various examples, such as curses, getch, sys, pygame, but either they're all too complicated or they don't work on my computer.
Could someone provide a full example and explanation of how to detect a keypress in Python, something like. Also need help with a game screen, specifically, printing something at a certain location, lie (0,0), kind of like how turtle starts drawing at (0,0):
userposy = 0 (y position of the 'X')
*print 'X' at (0, userposy)*
while True:
char = *detect what key is pressed*
if char == *down arrow*:
userposy -= 1.
*print 'X' at (0, userposy)*