Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How to start a chess prog?

Author: Michael Yee

Date: 06:07:16 04/09/05

Go up one level in this thread


On April 09, 2005 at 00:20:55, Michael M.G. wrote:

>Hello,
>
>I want to write a chess engine but have absolutly no clue of programming!
>About no language and I have very low mathematical understanding :)
>
>What is the easiest way to start?
>
>I wish there was a drag-and-drop programm for this *g*
>
>Do I have to learn a programming language at all?
>
>I can remeber that I wrote a (bad) AI for the game Age of Empires many years
>aggo.
>That was fun and super easy.It was just allways "if=>then"
>Can I write a chess engine with "if=>then"? :)
>
>Hope you have a guideline for me!
>
>Greetings
>Michael


One thing you could attempt is taking a simple existing open source chess
program and enhance (or completely redesign) the static evaluation
function--with the original author's permission, of course. That way, you could
get your feet wet without having to program everything yourself.

Once you got up to speed with the data structures of the program (e.g., knowing
how to determine what piece is currently on what square, etc.), you could write
your own rules in the evaluation function like:

if (number of opponent pieces attacking pawns in front of king > 4)
then decrease score by ...

if (rook on open file)
then increase score by ...

if (rook/queen doubled up)
then increase score by ...

etc.

I don't think there's currently any way around totally avoiding programming,
though.

Michael



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.