Source code needed for simple experiment

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Michael Sherwin
Posts: 3196
Joined: Fri May 26, 2006 3:00 am
Location: WY, USA
Full name: Michael Sherwin

Source code needed for simple experiment

Post by Michael Sherwin »

Is source code available for a material only searcher that is simple fast and hopefully smp? I want to do a very simple experiment for a search based on statistics and material only with absolutely no positional evaluation involved.
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
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Source code needed for simple experiment

Post by Dann Corbit »

Michael Sherwin wrote:Is source code available for a material only searcher that is simple fast and hopefully smp? I want to do a very simple experiment for a search based on statistics and material only with absolutely no positional evaluation involved.
Suggestion:
Start with Viper, and simplify the eval to have wood only.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
Michael Sherwin
Posts: 3196
Joined: Fri May 26, 2006 3:00 am
Location: WY, USA
Full name: Michael Sherwin

Re: Source code needed for simple experiment

Post by Michael Sherwin »

Dann Corbit wrote:
Michael Sherwin wrote:Is source code available for a material only searcher that is simple fast and hopefully smp? I want to do a very simple experiment for a search based on statistics and material only with absolutely no positional evaluation involved.
Suggestion:
Start with Viper, and simplify the eval to have wood only.
Thanks Dann, Sounds good! I recently downloaded Jim Ablett's Compile of Viper and could not get it to work in Windows 10 under Arena. I then tried compiling Viper myself with the same result. What am I doing wrong?
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
mar
Posts: 2555
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Source code needed for simple experiment

Post by mar »

Michael Sherwin wrote:Is source code available for a material only searcher that is simple fast and hopefully smp? I want to do a very simple experiment for a search based on statistics and material only with absolutely no positional evaluation involved.
What is simple fast searcher?
You can try my engine: https://github.com/kmar/cheng4
in eval.cpp, just replace the contents of Eval::eval() with a call to fastEval()
and in psq.cpp, simply zero all piece-square tables. That should do it.
Michael Sherwin
Posts: 3196
Joined: Fri May 26, 2006 3:00 am
Location: WY, USA
Full name: Michael Sherwin

Re: Source code needed for simple experiment

Post by Michael Sherwin »

mar wrote:
Michael Sherwin wrote:Is source code available for a material only searcher that is simple fast and hopefully smp? I want to do a very simple experiment for a search based on statistics and material only with absolutely no positional evaluation involved.
What is simple fast searcher?
You can try my engine: https://github.com/kmar/cheng4
in eval.cpp, just replace the contents of Eval::eval() with a call to fastEval()
and in psq.cpp, simply zero all piece-square tables. That should do it.
Thanks Martin, Will it compile with MSVC 2017 or MSVC 2005?
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
mar
Posts: 2555
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Source code needed for simple experiment

Post by mar »

Michael Sherwin wrote:Thanks Martin, Will it compile with MSVC 2017 or MSVC 2005?
Not sure if with 2005 (it may), but it comes with VS2012 solution, so it should compile just fine.
Michael Sherwin
Posts: 3196
Joined: Fri May 26, 2006 3:00 am
Location: WY, USA
Full name: Michael Sherwin

Re: Source code needed for simple experiment

Post by Michael Sherwin »

Michael Sherwin wrote:
mar wrote:
Michael Sherwin wrote:Is source code available for a material only searcher that is simple fast and hopefully smp? I want to do a very simple experiment for a search based on statistics and material only with absolutely no positional evaluation involved.
What is simple fast searcher?
You can try my engine: https://github.com/kmar/cheng4
in eval.cpp, just replace the contents of Eval::eval() with a call to fastEval()
and in psq.cpp, simply zero all piece-square tables. That should do it.
Thanks Martin, Will it compile with MSVC 2017 or MSVC 2005?
Martin, I'm old tired and not in very good health. Copying and pasting 61 files, getting them set up and hoping for no compatibility issues between MSVC 2012 and the versions of MSVC that I have sounds like a recipe for frustration. Isn't there a zip file of your source. I'm willing to do the work. However if there is a material searcher available the entire experiment would only take an hour at most to implement. Maybe you are willing to do the experiment? The very first experiment is so simple. Just count all the beta cuts favorable to the engine for each move at root and pick the best material move. If there are two or more materially equal moves pick the move with the highest beta cut count.
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
mar
Posts: 2555
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Source code needed for simple experiment

Post by mar »

Michael Sherwin wrote:Martin, I'm old tired and not in very good health. Copying and pasting 61 files, getting them set up and hoping for no compatibility issues between MSVC 2012 and the versions of MSVC that I have sounds like a recipe for frustration. Isn't there a zip file of your source. I'm willing to do the work. However if there is a material searcher available the entire experiment would only take an hour at most to implement. Maybe you are willing to do the experiment? The very first experiment is so simple. Just count all the beta cuts favorable to the engine for each move at root and pick the best material move. If there are two or more materially equal moves pick the move with the highest beta cut count.
It's simple, just click "clone or download" button and click download zip.
Then drag and drop the sln file to VS2017 and let it upgrade.
Release/x64 is probably the configuration you want.
Michael Sherwin
Posts: 3196
Joined: Fri May 26, 2006 3:00 am
Location: WY, USA
Full name: Michael Sherwin

Re: Source code needed for simple experiment

Post by Michael Sherwin »

mar wrote:
Michael Sherwin wrote:Martin, I'm old tired and not in very good health. Copying and pasting 61 files, getting them set up and hoping for no compatibility issues between MSVC 2012 and the versions of MSVC that I have sounds like a recipe for frustration. Isn't there a zip file of your source. I'm willing to do the work. However if there is a material searcher available the entire experiment would only take an hour at most to implement. Maybe you are willing to do the experiment? The very first experiment is so simple. Just count all the beta cuts favorable to the engine for each move at root and pick the best material move. If there are two or more materially equal moves pick the move with the highest beta cut count.
It's simple, just click "clone or download" button and click download zip.
Then drag and drop the sln file to VS2017 and let it upgrade.
Release/x64 is probably the configuration you want.
Okay thanks, I might be getting old but I can still learn new tricks! :lol:
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
mar
Posts: 2555
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Source code needed for simple experiment

Post by mar »

one more thing: it seems Microsoft broke the CRT (still not fixed!) so you'll probably have to set Windows SDK to 10.x in general properties or you can simply go to main.cpp and delete the 4 lines below "disable I/O buffering".

have fun :)