Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Does anybody know the algorithm for generation of all possible moves ?

Author: James Robertson

Date: 09:17:50 02/06/00

Go up one level in this thread


On February 06, 2000 at 08:08:36, Marek Mahdal wrote:

>I need a algorithm, that generates all possible moves in a position. Is there
>anybody, who can help me ???

As far as I know everybody uses something similar:

a) scan the entire board finding pieces
b) once you find a pice, generate moves for it and add them to the move list.
c) take care of extras (castling, ep, etc)

I don't know if I would call this an algorigthm, since everybody does it so
differently, but this is basically how moves are generated.

James



This page took 0.01 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.