checking input
I want to check an input without having to enter how might I do this?
like if you input "d" I don't want to press enter I want to just enter d and the "X" will move
Voters
Coder100 (17021)
using getch.
Its really easy and breaks almost nothing
from getch import getch
print('ay yo press something', end='')
print('check: you typed', getch())
DavidSafro (19)
what do you mean check an input without having to enter
XanthusPettitt (7)
@DavidSafro like if you input "d" I don't want to press enter I want to just enter d and the "X" will move
you could use getch
@LukeWright ok thank you lemme find out how to select your comment rq
just press the checkmark next to my comment @XanthusPettitt
@LukeWright oh im blind XD