Move Generation

Discussion of chess software programming and technical issues.

Moderator: Ras

Suji

Move Generation

Post by Suji »

After a year of school with insane homework assignments, I'm finally getting back to my chess engine. I'm just starting the move generation code.

I have a question about Move Generation in my 0x88 engine. Do I have to have attack tables in order to have move generation work, or can I leave them out entirely at this stage?

My goal is first build a working engine that knows all of the rules being as basic as possible, and then go for the more advanced stuff.
Edmund
Posts: 670
Joined: Mon Dec 03, 2007 3:01 pm
Location: Barcelona, Spain

Re: Move Generation

Post by Edmund »

attack tables are not needed.

A main decission you have to make at this stage is whether you want a legal or a pseudo-legal move-generator. The latter doesn't take into account the cases where you move into check or open up a discovered check on your king (illegal moves) and you need to check in the next iteration, whether your king was left in check.

Maybe you want to take a look on the movegen sourcecode of the CPW-Engine, which uses a very basic pseudo-legal 0x88 movegenerator.

http://chessprogramming.wikispaces.com/ ... egen(0x88)