Anyone interested in writing a chess program together?

Questions regarding game mechanics and graphic programming should go here.

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

Postby Safari » Thu Nov 17, 2005 1:59 am

One of the reasons that I dropped out was because it was getting way to advanced for me and would take to much time to understand BUT
@Alvaro: I'm running gcc 3.4.2 @ freebsd 5.4. If you need someone to see and check if the code compiles I could spare you some time! :)

Btw, Darryl: Way to go! :mrgreen:
Congratulations!
你 好!
User avatar
Safari
 
Posts: 1362
Joined: Sun Sep 19, 2004 11:07 am

Postby Alvaro » Thu Nov 17, 2005 9:35 am

Cohiba wrote:I opened a new project, saved it, added all the files that I got from the Source part of the wiki page, saved the project and then tried to compile and I got this errors, what am i doing wrong?

Remove the modules utility_standard.cpp and utility_posix.cpp from the project. Post again if that doesn't work.
User avatar
Alvaro
Moderator
 
Posts: 5185
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

Postby Alvaro » Thu Nov 17, 2005 9:38 am

Safari wrote:@Alvaro: I'm running gcc 3.4.2 @ freebsd 5.4. If you need someone to see and check if the code compiles I could spare you some time! :)

FreeBSD is POSIX compatible, so I would expect it to work without changes, but it would be good if you could check. Anyone using MacOS X?
User avatar
Alvaro
Moderator
 
Posts: 5185
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

Postby DannyBoy » Thu Nov 17, 2005 9:41 am

Alvaro wrote:Anyone using MacOS X?
Yep, 10.4.3. I can test it, if you like?
User avatar
DannyBoy
 
Posts: 1160
Joined: Fri Feb 13, 2004 12:56 pm
Location: In the Billiard Room with the Lead Pipe

Postby tomcant » Thu Nov 17, 2005 10:03 am

DannyBoy wrote:
Alvaro wrote:Anyone using MacOS X?
Yep, 10.4.3. I can test it, if you like?

Please do... :)
If it wasn't for C, we would be using BASI, PASAL and OBOL.
User avatar
tomcant
 
Posts: 3101
Joined: Tue Sep 23, 2003 1:56 am
Location: Colchester, UK

Postby DannyBoy » Thu Nov 17, 2005 10:47 am

After a minor correction to the code by Álvaro, it compiles and runs fine on OS X. :)
User avatar
DannyBoy
 
Posts: 1160
Joined: Fri Feb 13, 2004 12:56 pm
Location: In the Billiard Room with the Lead Pipe

Postby Cohiba » Fri Nov 18, 2005 2:45 pm

After 115 games on ICC it has a Blitz rating of 2251.

I have it with no book so the others always get advantage of time in the opening but I wanted to get the real power of the engine.

I dont see how it is weak, 2251 is more than some titled players on ICC but sure it isnt like shredder engines that have like 3600 ratings.

It does ok.

I have a question, the engine whispers the evaluation and moves etc but it doesnt do it after every move like it should, from what i have seen, it is kind of random or am i missing something? Sometimes it would whisper on the opening and then no more till the ending?
Cohiba
 
Posts: 125
Joined: Mon Jul 04, 2005 12:42 pm

Postby Alvaro » Fri Nov 18, 2005 3:04 pm

Hey, Cohiba. Thanks for testing the program on ICC! We have now a reference of how good the program is, and we can use it to measure progress. I think this is an excellent idea!

So what was involved in setting this up? I have never researched how to hook up an engine to a chess server. Can you post a little description and/or some links?

Cohiba wrote:I have a question, the engine whispers the evaluation and moves etc but it doesnt do it after every move like it should, from what i have seen, it is kind of random or am i missing something? Sometimes it would whisper on the opening and then no more till the ending?

I am not sure what you mean by "whisper". In UCI you can give "info" lines, and the program does that every time a move from the root is searched that returns a score better than any other score we have so far. It is possible that whatever software you are using to connect the program to the server (zippy?) converts those "info" lines into "whispers" (I assume that's some sort of communication in ICC), but I don't really know enough about the setup to explain what you are seeing.
User avatar
Alvaro
Moderator
 
Posts: 5185
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

Postby Cohiba » Fri Nov 18, 2005 3:22 pm

No problem, at least I can help in something since i cant do so in the programming part :P

Go here to check the engine's rating etc:

http://www.chessclub.com/activities/fin ... dle=habano

------------------------------------------------------------------------------

Setting it up was no big deal, I just downloaded a free copy of chesspartner, loaded the engine and connected to ICC (if you download chesspartner 5.3, it will become clear) and I just leave my computer on all night or wether i am not playing myself on ICC.

Check my poor rating hehe:

http://www.chessclub.com/activities/fin ... le=luisrod

-----------------------------------------------------------------------------

Ok, about the whispers. In a ICC game, when you talk, you can kibitz or whisper. If you whisper, only the non-playing audience sees it, kibitz everyone sees it including the players so thats why engines whispers their eval so that their opponents dont see the lines etc. A common eval whisper is like this:

Code: Select all
Habano(C) kibitzes: Habano welcomes you! Interface: ChessPartner 5.3
Habano(C) whispers: -0.04/8 d5 Nc3 Bf5 e3 Nc6 Nf3 Nb4 Bb5+
Habano(C) whispers: -0.07/8 Nc6 Nc3 Bg4 Bf4 Bxf3 exf3 Nf6 Bb5
Habano(C) whispers: -0.06/8 e6 e3 Nf6 c4 c5 Ng5 h5
Habano(C) whispers: -0.06/8 Bd7 Ne5 Nc6 Nxd7 Qxd7 Kd2
Habano(C) whispers: 0.03/7 Nh5 Be3 Qd6 Kd2
Habano(C) whispers: -0.12/8 f5 Bb5 Bd7 Nxe4 fxe4 Ng5 Qe7 c4
Habano(C) whispers: -0.11/8 Bd6 Nxe4 dxe4 Bxd6 cxd6 Ke2 exf3+
Habano(C) whispers: -0.25/8 Nxd2 Nxc6 bxc6 Qxd2 Bd6 Be5 Bxe5 dxe5
Habano(C) whispers: -0.15/9 g5 Bxd6 cxd6 f4 g4 Qd3 c5 Qb5+ Qd7
Habano(C) whispers: -0.12/9 c5 Qe2 O-O Bxd6 cxd6 c4 e5 Rad1 cxd4
Habano(C) whispers: -0.18/8 Qxd6 f4 cxd4 Qxd4 O-O c4 Kh8


This whispers arent being given after each move, but that isnt important i guess, the important thing is that we crush the opponent :P

Inform me if you make any changes to the engine. I will continue to be testing the engine so that I can help on something.

Offtopic: What is everyone's chess strength? I am in the 1500's in ICC in Blitz. ICC is usually harder than every other server, I have played in chessanytime.com and FICS etc and I had 1800-2000 etc.
Cohiba
 
Posts: 125
Joined: Mon Jul 04, 2005 12:42 pm

Postby Safari » Fri Nov 18, 2005 4:44 pm

Where can I find the source code (without having to copy & paste the source from the CVS)?
Don't you have it collected somewhere?
你 好!
User avatar
Safari
 
Posts: 1362
Joined: Sun Sep 19, 2004 11:07 am

Postby Cohiba » Fri Nov 18, 2005 5:32 pm

I got it by copying and pasting but later on tonight when i have time, i will put it all in a zip so you can compile it. It was hell to copy all that :D
Cohiba
 
Posts: 125
Joined: Mon Jul 04, 2005 12:42 pm

Postby Zen » Fri Nov 18, 2005 9:04 pm

Just download a svn client and do a checkout
User avatar
Zen
 
Posts: 1088
Joined: Wed Sep 24, 2003 1:41 am
Location: Norway

Postby tomcant » Sat Nov 19, 2005 4:52 am

Cohiba wrote:Offtopic: What is everyone's chess strength? I am in the 1500's in ICC in Blitz. ICC is usually harder than every other server, I have played in chessanytime.com and FICS etc and I had 1800-2000 etc.

To be honest, I'm not sure. On instantchess.com I generally beat 1700-1800 rated players. I play a lot of chess at college (we get very bored during free lessons and there happens to be 4 or so chess boards lying around), and I can't remember the last time I lost. I would therefore rate myself something like 1700-1850.

I would like to know what Alvaro's rating is! :)
If it wasn't for C, we would be using BASI, PASAL and OBOL.
User avatar
tomcant
 
Posts: 3101
Joined: Tue Sep 23, 2003 1:56 am
Location: Colchester, UK

Postby Safari » Sat Nov 19, 2005 1:02 pm

First of all I'm not a Unix expert.

When I first compiled I got this:

bash-2.05b$ make
"makefile", line 40: Could not find main.d square.d piece.d board.d castlings.d move.d attacks.d movegen.d search.d utility_posix.d random_table.d hash.d static_eval.d perft.d
make: fatal errors encountered -- cannot continue

So I removed the dependencies in the makefile and now I get

bash-2.05b$ make
g++ -O -pipe -O6 -Wall -c ../Source//main.cpp
g++ -O -pipe -O6 -Wall -c ../Source//square.cpp
g++ -O -pipe -O6 -Wall -c ../Source//piece.cpp
g++ -O -pipe -O6 -Wall -c ../Source//board.cpp
g++ -O -pipe -O6 -Wall -c ../Source//castlings.cpp
g++ -O -pipe -O6 -Wall -c ../Source//move.cpp
g++ -O -pipe -O6 -Wall -c ../Source//attacks.cpp
g++ -O -pipe -O6 -Wall -c ../Source//movegen.cpp
g++ -O -pipe -O6 -Wall -c ../Source//search.cpp
g++ -O -pipe -O6 -Wall -c ../Source//utility_posix.cpp
g++ -O -pipe -O6 -Wall -c ../Source//random_table.cpp
g++ -O -pipe -O6 -Wall -c ../Source//hash.cpp
g++ -O -pipe -O6 -Wall -c ../Source//static_eval.cpp
g++ -O -pipe -O6 -Wall -c ../Source//perft.cpp
-o cpphome_chess main.o square.o piece.o board.o castlings.o move.o attacks.o movegen.o search.o utility_posix.o random_table.o hash.o static_eval.o perft.o
-o:No such file or directory
*** Error code 1
你 好!
User avatar
Safari
 
Posts: 1362
Joined: Sun Sep 19, 2004 11:07 am

Postby Alvaro » Mon Nov 21, 2005 10:48 am

I am not a `make' expert. The makefile I provided is adapted from one that a friend wrote a long time ago, and I understand the basic idea of how it works, but some of the details are obscure. I am surprised it didn't work for you, though.

Please, post your exact makefile, so I can try to help. It looks like your linker is not setup correctly (if you just prepend the failed command by "g++ ", it will work just fine).
User avatar
Alvaro
Moderator
 
Posts: 5185
Joined: Mon Sep 22, 2003 4:57 pm
Location: NY, USA

PreviousNext

Return to Games and Graphics

Who is online

Users browsing this forum: Google Adsense [Bot], Yahoo [Bot] and 0 guests