Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How to poll stdin during thinking? - additional info...

Author: Rafael Andrist

Date: 08:55:13 12/12/01

Go up one level in this thread


On December 12, 2001 at 11:43:05, Severi Salminen wrote:

>>In what language? At what platform? It can't be done in any portable fashion.
>
>Oh, sorry, I forgot to tell. PC/WIN98 and Visual C++ 6.0. And I have done it in
>C only, so no C++. I hope this info might help :)
>
>Severi

You can use the _kbhit() function to determine if a key was pressed. But this
isn't standard C. On the other hand, multithreading is not very complicated.

Rafael B. Andrist



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.