An example random game

Discussion of chess software programming and technical issues.

Moderator: Ras

Zenmastur
Posts: 919
Joined: Sat May 31, 2014 8:28 am

Re: Another example random game

Post by Zenmastur »

How many games can you play per second and on which hardware?

Regards,

Zen
Only 2 defining forces have ever offered to die for you.....Jesus Christ and the American Soldier. One died for your soul, the other for your freedom.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Random game generation can be quite useful

Post by sje »

Random game generation can be quite useful.

1) It can be used to benchmark performance.

2) It can be used to test and verify multithreaded communication and control..

3) It tests the speed and quality of a PRNG.

4) Parsing huge collections of random games can test PGN decoding.

5) It can be used to test game termination detection. Specifically, it's helpful for testing the different draw conditions. Generating a large number of random games should produce about 2.5% repetition draws and about 6.1% stalemates. Getting numbers other than these means something's busted.