simple Chess AI?

Discussion about everything. New games, 3d math, development tips...
Post Reply
Guest

simple Chess AI?

Post by Guest »

Hi,

iam looking for a very simple Chess-Ai written in C++.
Does anyone of you know a such a ChessAI?

Or has anyone another solution for my problem?
Cause, i really don't know to create a Chess.AI,
I have created a board using Irrlicht, but know iam stuck.
FlyHigh
Posts: 111
Joined: Wed Mar 23, 2005 12:05 am

Post by FlyHigh »

Chess AI is the hardest AI to write, mostly because its a game of perfect information (both players can see all of the game, unlike say poker where you only see your own cards)

Theres quite a good series (about 8 articles, i think) on http://www.gamedev.net -> articles -> AI. Although its a differcult read without prior programming/AI experience.

I had to do a chess game last year at uni, it didn't have to have AI so i just put one in the choose a random move from all available each turn, although playing AI against itself was quite fun :)
Guest

Post by Guest »

Mmmh, ok thanks. Maybe its better to create a random Move-Generator instead of a real Ai.
Guest

Post by Guest »

Well a random move generator could be easier but I don't think it would be a particularly strong chess player :wink:

You might google GNU Chess you can look at it's source code for ideas.
puh
Posts: 356
Joined: Tue Aug 26, 2003 3:53 pm

Post by puh »

http://p4wn.sourceforge.net/5k/
5K AI :)
Tip: JavaScript is pretty much just like C++
Megaman
Posts: 7
Joined: Sat Sep 03, 2005 9:56 pm
Location: Brindisi, Italy

Post by Megaman »

it's all based on backtracking...
I'd rather have a search engine or a compiler on a deserted island than a game.
John Carmack
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

I wouldn't recommend that 5k chess game, when faced with checkmate the computer cheats.
i feel like i've been robbed
Guest

Post by Guest »

If you want something simpler and can read python look here:

http://www.kolumbus.fi/jyrki.alakuijala/pychess.html
Post Reply