First Chess Program and book tool!

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

mainsworthy

First Chess Program and book tool!

Post by mainsworthy »

Hello, Ive just found these great forums! I get to tell all you chess hobbiests about my new chess program, its text and will run on all windows machines, and theres an opening book tool with it.
http://uk.geocities.com/avalomhilly/TextChes.zip

here are more sites I run, so you know who I am
http://uk.geocities.com/avalomhilly/Fre ... games.html
http://uk.groups.yahoo.com/group/AvalomandMud/

I WOULD LOVE SOME CHESS TESTING OF MY PROGRAM, AS ITS MY FIRST PROGRAM , I CHALLENGE YOU TO BREAK IT! AND MATE IT IN 20
CAN YOU POST YOUR FINDINGS

the opening books can force a responce!
James Constance
Posts: 358
Joined: Wed Mar 08, 2006 8:36 pm
Location: UK

Re: First Chess Program and book tool!

Post by James Constance »

Welcome to the forum, Mark, and good luck with your chess program. It took me 22 moves to win!

Code: Select all

1. e4 Nf6 2. e5 Ne4 3. d4 Nc6 4. f3 Nxd4 5. Qxd4 d5 6. fxe4 e6 7. exd5 Qxd5 8. Nf3 Qa5+ 9. Bd2 Bc5 10. Bxa5 Bxd4 11. Nxd4 c5 12. Bb5+ Kf8 13. Nf3 f6 14. O-O a6 15. Be2 Bd7 16. exf6 Bc6 17. fxg7+ Kxg7 18. Bc3+ e5 19. Nxe5 Be4 20. Bh5 Rhd8 21. Ng4+ Kg8 22. Nh6# 1-0 
Still, it didn't play any illegal moves, and it didn't try to break the board over my head ;)

James
User avatar
JuLieN
Posts: 2949
Joined: Mon May 05, 2008 12:16 pm
Location: Bordeaux (France)
Full name: Julien Marcel

Re: First Chess Program and book tool!

Post by JuLieN »

@James
I broke your 22 moves record : 15 moves! :wink: (Played with no book)

Code: Select all

1.e4,Nf6; 2.e5,Ne4; 3.Bc4,Nc6; 4.d4,e6; 5.c3,Be7; 6.Qg4,Na5; 7.Bd3,Ng5; 8.h4,h5; 9.Qg3,Nh7; 10. Qxg7,Rf8; 11.Bxh7,Bxh4; 12.g3,Bg5; 13.Bxg5,f6; 14.Bg6+,Rf7; 15.Qxf7 1-0
@Mark
Is your engine using non-minimax strategy? (I ask because 12. ...,Bg5 is a one-ply blunder).
"The only good bug is a dead bug." (Don Dailey)
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
plattyaj

Re: First Chess Program and book tool!

Post by plattyaj »

I didn't play, but Schola did (your engine had white):

Code: Select all

1.Nf3 d5 2.g3 c6 3.Nc3 d4 {(d4 Nb1 Nf6 Bg2 e5 Nxe5 Nbd7 f4 Nxe5) +0.06/9 1}
4.Ne4 f5 {(f5 Neg5 e5 e3 h6 Bc4 hxg5 Bxg8) +0.06/8 1} 5.Nc5 e5 {(e5 Nb3 Bd6 e3 Nf6
exd4 e4 Ne5 O-O Bc4+ Nd5) +0.21/10 1} 6.Nb3 Bd6 {(Bd6 e3 dxe3 dxe3 Nf6 Bd2 Be6 Ng5
Bd5) +0.30/9 1} 7.Bg2 Nf6 {(Nf6 e3 c5 exd4 cxd4 O-O O-O d3 Nc6) +0.39/9 1} 8.O-O O-O
{(O-O e3 dxe3 dxe3 Be6 Na5 b6 Nb7) +0.32/8 1} 9.d3 Na6 {(Na6 e3 c5 e4 c4 Nbd2 cxd3
cxd3) +0.26/8 1} 10.Bg5 Nc7 {(Nc7 e3 c5 exd4 cxd4 Na5 Ne6 Nc4) +0.24/8 1} 11.a4 Ncd5
{(Ncd5 Bd2 c5 e4 dxe3 fxe3 Be6 e4) +0.43/8 1} 12.h3 Bd7 {(Bd7 Nbd2 h6 Nc4 Bc5 Bd2 Be6)
+0.85/7 1} 13.Qc1 h6 {(h6 Bd2 b5 axb5 cxb5 e3 dxe3 fxe3) +0.56/8 1} 14.Bd2 b6 {(b6 e3
dxe3 fxe3 e4 dxe4 Nxe4 Be1) +0.52/8 1} 15.Nxe5 Bxe5 {(Bxe5 f4 Bd6 Nxd4 Nh5 Qe1 Bc5
e3 Nhf6 Rd1) +1.21/10 2} 16.f4 Bd6 {(Bd6 Nxd4 Nh5 Be1 Bc5 c3 Nb4 Bf2 Nd5) +1.33/9
2} 17.Nxd4 Nh5 {(Nh5) +1.09/8 2} 18.g4 fxg4 {(fxg4 hxg4 Nhxf4 Bxd5+ Nxd5 Rxf8+
Qxf8 e4 Nf6 Nf5 Be5) +2.67/9 2} 19.hxg4 Nhxf4 {(Nhxf4 Bxd5+ Nxd5 Rxf8+ Qxf8 e4 Nf6
g5 hxg5 Bxg5) +2.70/8 2} 20.Bxf4 Nxf4 {(Nxf4 e3 Nxg2 Kxg2 Rxf1 Qxf1 c5 Nf5)
+3.48/8 2} 21.Be4 Qg5 {(Qg5 Bg2 Bxg4 Rf2 Bc5 Rxf4 Qxf4 e3) +5.84/8 2} 22.Bf3 Bxg4
{(Bxg4 Kf2 Qh4+ Ke3 Ng2+ Kd2 Bf4+ Kd1 Ne3+ Qxe3 Bxe3 Nxc6) +10.21/8 2} 23.Bxc6 Bd7+
{(Bd7+ Kh2 Qh5+ Kg1 Nxe2+ Nxe2 Qh2#) +M3/8 2} 24.Bg2 Qxg2# {(Qxg2#) +M0/1}  {Mate} 0-1

A couple of comments. As has been previously mentioned, there are some major blunders which points to an "unusual" ;) search strategy.

The XBoard protocol is pretty easy to implement (I would strongly recommend protocol version 2 but version 1 should be very easy to add to your engine). This would allow it to play against other engines and I think you would find that is a great way to figure out weaknesses.

http://www.tim-mann.org/xboard/engine-intf.html

Also, for the current interface you have it would be a great improvement to output the move it made underneath the boards - though it was actually good visualization practice for me to have to hunt for the move on the board!

Good luck!

Andy.
mainsworthy

Re: First Chess Program and book tool!

Post by mainsworthy »

Thanks James, a good result then :)
mainsworthy

Re: First Chess Program and book tool!

Post by mainsworthy »

Hi Andy great idea winboard, i will look into it!
mainsworthy

Re: First Chess Program and book tool!

Post by mainsworthy »

Im thrilled to have got your results! and found this forum thankyou!
User avatar
Bill Rogers
Posts: 3562
Joined: Thu Mar 09, 2006 3:54 am
Location: San Jose, California

Re: First Chess Program and book tool!

Post by Bill Rogers »

Mark
Welcome to the forum and to the begining of a new lifetime hobby. If you are like most of the rest of us you will be working on your program for years to come.
Let us know when you get it to work Winbord or Xboard so we can put it in some real tournements.
Good luck
Bill
User avatar
hgm
Posts: 28458
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: First Chess Program and book tool!

Post by hgm »

If you would only implement a minimal subset of the WinBoard protocol, consiting of understanding the commands 'new' and 'go' plus input moves in long-algebraic notation (e.g. g1f3), completely ignoring all the rest, and output your move as 'move b8c6', it would already be enough to participate in a tournament like Chess War. A new ChessWar Promo-division will start soon there, and you will be able to watch the games of your engine (and the others, of course) life over the internet with the TLCV viewer.
mainsworthy

Re: First Chess Program and book tool!

Post by mainsworthy »

sounds exciteing, Im going to look at it, and give it a go!