Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[C++] Chess game Terminal

Name: Snake4D 2012-01-11 12:05

Hi,
I'm trying to make a little chess game,
in C++, is in terminal because still I don't know a good GUI package for C++ sorry I'm n00b...

btw I got to print out the board:
like this:
[code]
-|--a-|--b-|--c-|--d-|--e-|--f-|--g-|--h-|
8|-bR-|+bk+|-bB-|+bQ+|-bK-|+bB+|-bk-|+bR+|
7|+bP+|-bP-|+bP+|-bP-|+bP+|-bP-|+bP+|-bP-|
6|----|+--+|----|+--+|----|+--+|----|+--+|
5|+--+|----|+--+|----|+--+|----|+--+|----|
4|----|+--+|----|+--+|----|+--+|----|+--+|
3|+--+|----|+--+|----|+--+|----|+--+|----|
2|-wP-|+wP+|-wP-|+wP+|-wP-|+wP+|-wP-|+wP+|
1|+wR+|-wk-|+wB+|-wQ-|+wK+|-wB-|+wk+|-wR-|
[\code]

and one can tell like in chess with the sentence "(e2:e4)" to move the piece from e2 to e4

but now what I need to make a AI?
I'll paste the code in pastebin so you can have a look:

Name: Anonymous 2012-01-11 13:27

OP, read xboard protocol - you don't need to write gui.

Cool story time:
I tried to write chess AI once, even connected it to xboard and tested on several Guests at FICS  Guess what, it appeared that opening books ARE important, as guests were not patient enough to wait while my almighty AI calculated start position score to  start with its favorite Nf3. On the bright side my AI is undefeated after 3 games since people aborted the game at turn 1.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List