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.
Simple chess program to strip off it's eval function?
Moderators: hgm, Rebel, chrisw
-
- Posts: 30
- Joined: Thu Oct 07, 2010 4:15 pm
Simple chess program to strip off it's eval function?
B.S. in Mathematics
M.S. in Mathematics
Ph.D student in Mathematics.
M.S. in Mathematics
Ph.D student in Mathematics.
-
- 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?
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
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
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
-
- Posts: 30
- Joined: Thu Oct 07, 2010 4:15 pm
Re: Simple chess program to strip off it's eval function?
In the last line of the eval file, I changed:
return wtm ? score : -score;
to:
return wtm ? (wMat-bMat) : (bMat-wMat);
return wtm ? score : -score;
to:
return wtm ? (wMat-bMat) : (bMat-wMat);
B.S. in Mathematics
M.S. in Mathematics
Ph.D student in Mathematics.
M.S. in Mathematics
Ph.D student in Mathematics.
-
- 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?
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
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
-
- Posts: 30
- Joined: Thu Oct 07, 2010 4:15 pm
Re: Simple chess program to strip off it's eval function?
Yes !
And just like i conjectured, having only material evaluation coupled with a fast search yields a very good play in the middle game.
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.
M.S. in Mathematics
Ph.D student in Mathematics.
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Simple chess program to strip off it's eval function?
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?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.
-
- Posts: 27808
- 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?
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?
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Simple chess program to strip off it's eval function?
If I understand him correctly, he means to count the wood only.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?