>> I assume you want to display something like this:
>>
>> Enter your next move: 0:30
SNIP
> Assuming Steven has guessed right then I think you need to use one of the
> non blocking input mechanisms like kbhit() or getch() or somesuch.
>
> Those methods are notioriously unreliable and OS specific.
On 03/01/12 21:28, Steven D'Aprano wrote:
I assume you want to display something like this:
Enter your next move: 0:30
where the "0:30" is the time remaining, and is constantly updating. When
it hits zero, the function returns whether the user has typed anything
or not.
Assuming Steven has g
Homme, James wrote:
Hi,
So far, I know about raw_input as a way to get something from the keyboard into
my program. My question is this. Let's say I am trying to subtract time from a
value as though someone is thinking and they want to type in a move. If my
program prints a prompt to the scree
Hi,
So far, I know about raw_input as a way to get something from the keyboard into
my program. My question is this. Let's say I am trying to subtract time from a
value as though someone is thinking and they want to type in a move. If my
program prints a prompt to the screen, while the person is