Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Length of time for Move_Gen()?

Author: Thomas McBurney

Date: 19:05:49 02/15/04

Go up one level in this thread


On February 15, 2004 at 15:11:56, Andrew Wagner wrote:

>So I'm starting to design a chess engine, and I have a nifty little class for
>doing benchmark tests, and I'm wondering if anyone would like to hazard a guess
>as to what is a good (or bad) length of time for an engine to generate all
>pseudo-legal (even if it results in check) moves in a position. Any takers?

If you like to compare it to someone else who has written their chess program in
BASIC then here are my results...

Results are based on an old Athlon 650.

It takes an average of 13.5 seconds to call my move generator 1,000,000 times
from the starting position.  So that works out to be an average of 74,074 times
a second.  Given that there are 20 legal moves from the starting position, this
works out to be an average of 1,481,481 moves per second.

If I call my move generator in 100% legal move mode, then the performance
dramatically drops.  It takes 49.9 seconds to call the move generator 1,000,000
times.  (20,040 times per second or 400,801 moves per second)

Cheers,
Tom




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.