Simple chess program to strip off it's eval function?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

luisrodg
Posts: 30
Joined: Thu Oct 07, 2010 4:15 pm

Simple chess program to strip off it's eval function?

Post by luisrodg »

Hello,

Im looking for a simple open source chess program such that I can strip off it's eval function and have it only consider material and nothing else. I want to put such a program to play on a server and observe it's erratic play and see what elo it would achieve.

Stupid, yes, but it's just something that's been in my mind and would love to take on this "stupid" project.

Would love a simple program because my programming techniques are limited.

Thanks.
B.S. in Mathematics
M.S. in Mathematics
Ph.D student in Mathematics.
Michael Sherwin
Posts: 3196
Joined: Fri May 26, 2006 3:00 am
Location: WY, USA
Full name: Michael Sherwin

Re: Simple chess program to strip off it's eval function?

Post by Michael Sherwin »

In RomiChess the evaluation is very cheap and the node rate high. Just have the Eval() return wMat - bMat sign flipped if it is black to move.

To not use learning type in console mode:

book_off

learn_off

quit
If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
luisrodg
Posts: 30
Joined: Thu Oct 07, 2010 4:15 pm

Re: Simple chess program to strip off it's eval function?

Post by luisrodg »

In the last line of the eval file, I changed:

return wtm ? score : -score;

to:

return wtm ? (wMat-bMat) : (bMat-wMat);
B.S. in Mathematics
M.S. in Mathematics
Ph.D student in Mathematics.
Michael Sherwin
Posts: 3196
Joined: Fri May 26, 2006 3:00 am
Location: WY, USA
Full name: Michael Sherwin

Re: Simple chess program to strip off it's eval function?

Post by Michael Sherwin »

And is that what you wanted?
If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
luisrodg
Posts: 30
Joined: Thu Oct 07, 2010 4:15 pm

Re: Simple chess program to strip off it's eval function?

Post by luisrodg »

Yes !

And just like i conjectured, having only material evaluation coupled with a fast search yields a very good play in the middle game.
B.S. in Mathematics
M.S. in Mathematics
Ph.D student in Mathematics.
Dann Corbit
Posts: 12538
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Simple chess program to strip off it's eval function?

Post by Dann Corbit »

luisrodg wrote:Yes !

And just like i conjectured, having only material evaluation coupled with a fast search yields a very good play in the middle game.
I guess that this very good play is inferior to the play with the rest of the evaluation enabled and everything else the same. Did you test it?
User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Simple chess program to strip off it's eval function?

Post by hgm »

What exactly does "material only" mean here? Is that Piece-Square tables? Or does it only account for piece base values? Is the Bishop pair included?
Dann Corbit
Posts: 12538
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Simple chess program to strip off it's eval function?

Post by Dann Corbit »

hgm wrote:What exactly does "material only" mean here? Is that Piece-Square tables? Or does it only account for piece base values? Is the Bishop pair included?
If I understand him correctly, he means to count the wood only.