Dumb stockfish

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

Moderators: hgm, Rebel, chrisw

Fulvio
Posts: 395
Joined: Fri Aug 12, 2016 8:43 pm

Dumb stockfish

Post by Fulvio »

Ispired by the thread "Expected CCRL ELO strength of a barebones chess engine?" I would like to see how strong is Stockfish without any evaluation.
I have changed the evaluate function to:

Code: Select all

Value Eval::evaluate(Position& pos) {
    const int my_moves = (int) MoveList<LEGAL>(pos).size();
    StateInfo newSt;
    pos.do_null_move(newSt);
    const int adv_moves = (int) MoveList<LEGAL>(pos).size();
    pos.undo_null_move();
    auto res = Value(my_moves - adv_moves);
    return res;
}
but it is still too strong and I imagine there are other evaluate functions somewhere else.
Suggestions?
Last edited by Fulvio on Thu Mar 12, 2020 8:29 pm, edited 1 time in total.
Damir
Posts: 2801
Joined: Mon Feb 11, 2008 3:53 pm
Location: Denmark
Full name: Damir Desevac

Re: Dumb stockfish

Post by Damir »

Try and disable Lc0 networks and see how strong Lc0 really is.... :lol: :lol:
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Dumb stockfish

Post by MikeB »

Fulvio wrote: Thu Mar 12, 2020 8:25 pm Ispired by the thread "Expected CCRL ELO strength of a barebones chess engine?" I would like to see how strong is Stockfish without any evaluation.
I have changed the evaluate function to:

Code: Select all

Value Eval::evaluate(Position& pos) {
    const int my_moves = (int) MoveList<LEGAL>(pos).size();
    StateInfo newSt;
    pos.do_null_move(newSt);
    const int adv_moves = (int) MoveList<LEGAL>(pos).size();
    pos.undo_null_move();
    auto res = Value(my_moves - adv_moves);
    return res;
}
but it is still too strong and I imagine there are other evaluate functions somewhere else.
Suggestions?
The Stockfish search , in some respects , is more notable than the evaluate function. Take a look at the "#ifdef Weakfish" lines in search.cpp, The Weakfish defines takes it down 500-600 Elo ( to about 2900-3000 ).

https://github.com/MichaelB7/Stockfish/tree/honey

Also looks at piece value in types.h , psqt.cpp, material.cpp and pawns.cpp. You might have to be careful since I am sure some of them roll into evaluate at some point.
Image
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Dumb stockfish

Post by Dann Corbit »

I believe it was Christophe Theron who first said, "Search is also knowledge."
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.