Skip to content

Commit

Permalink
Rescale UCI parameters to 100
Browse files Browse the repository at this point in the history
And correspondingly modify internal ones
to compensate it.

No functional change.
  • Loading branch information
mcostalba committed Apr 9, 2013
1 parent 2a5ae34 commit 9498b2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace {
//
// Values modified by Joona Kiiski
const Score WeightsInternal[] = {
S(252, 344), S(216, 266), S(46, 0), S(247, 0), S(259, 0)
S(289, 344), S(221, 273), S(46, 0), S(271, 0), S(307, 0)
};

// MobilityBonus[PieceType][attacked] contains mobility bonuses for middle and
Expand Down
10 changes: 5 additions & 5 deletions src/ucioption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ void init(OptionsMap& o) {
o["Book File"] = Option("book.bin");
o["Best Book Move"] = Option(false);
o["Contempt Factor"] = Option(0, -50, 50);
o["Mobility (Middle Game)"] = Option(115, 0, 200, on_eval);
o["Mobility (Middle Game)"] = Option(100, 0, 200, on_eval);
o["Mobility (Endgame)"] = Option(100, 0, 200, on_eval);
o["Passed Pawns (Middle Game)"] = Option(103, 0, 200, on_eval);
o["Passed Pawns (Endgame)"] = Option(103, 0, 200, on_eval);
o["Passed Pawns (Middle Game)"] = Option(100, 0, 200, on_eval);
o["Passed Pawns (Endgame)"] = Option(100, 0, 200, on_eval);
o["Space"] = Option(100, 0, 200, on_eval);
o["Aggressiveness"] = Option(119, 0, 200, on_eval);
o["Cowardice"] = Option(110, 0, 200, on_eval);
o["Aggressiveness"] = Option(100, 0, 200, on_eval);
o["Cowardice"] = Option(100, 0, 200, on_eval);
o["Min Split Depth"] = Option(msd, 4, 12, on_threads);
o["Max Threads per Split Point"] = Option(5, 4, 8, on_threads);
o["Threads"] = Option(cpus, 1, MAX_THREADS, on_threads);
Expand Down

0 comments on commit 9498b2a

Please sign in to comment.