- Jul 20, 2010
- 90
- 0
- 66
I'm writing a single player game as beginner project to learn python, and I need to have the user able to enter commands asynchronously from events occuring in the game (like a MUD does). However this doesn't use telnet or networking, it's just a script. I haven't found much information about how to do this except that threads might be involved. - One thread to grab user input and place it into a command Que - One thread to run game events on a sleep interval Is that the best way to do it?
