Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A new extensive chess programming tutorial

Author: Dan Honeycutt

Date: 15:47:36 02/11/04

Go up one level in this thread


On February 11, 2004 at 13:44:31, Eli Bendersky wrote:

>Hello all,
>
>I began publishing a new chess programming tutorial. It
>follows my pet project of developing a chess playing agent
>from scratch. The tutorial is released in stages, as soon
>as I complete parts of the program. Each release includes
>a new chapter of the tutorial (in PDF form) and all the
>code for that release. The whole thing is free, of course,
>including the code which is licensed with the GPL.
>
>I hope it will be of interest to people in this group.
>You're welcome to check it out at:
>
>http://www.geocities.com/spur4444/prog/jamca/jamca.html
>
>Kind regards,
>Eli

interesting project.
square a1 on your board is 21.  to place a white rook you have something like:

board[21] = white_rook;

i'd suggest

char frame[120];
char * board = frame + 10;
board[11] = white_rook;

same as your board except square a1 (rank 1, file 1) is now 11.  the digits of
the index to any square are the normal chess rank and file of that square.

Dan H.



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.