From 08ae4afea3bdde8ef061349c7db44cbd453cda34 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sun, 26 Apr 2020 19:41:05 +0200 Subject: [PATCH] Correctly set default value for elo member variable --- CuckooChess/src/main/java/uci/EngineControl.java | 2 +- .../petero/droidfish/engine/cuckoochess/DroidEngineControl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CuckooChess/src/main/java/uci/EngineControl.java b/CuckooChess/src/main/java/uci/EngineControl.java index f3c2969..cd627da 100644 --- a/CuckooChess/src/main/java/uci/EngineControl.java +++ b/CuckooChess/src/main/java/uci/EngineControl.java @@ -74,7 +74,7 @@ public class EngineControl { // Reduced strength variables private int strength = 1000; private boolean limitStrength = false; // If set, overrides strength, using eloToStrength table - private int elo = Integer.MAX_VALUE; + private int elo = 1500; private int maxNPS = 0; private long randomSeed = 0; diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/engine/cuckoochess/DroidEngineControl.java b/DroidFishApp/src/main/java/org/petero/droidfish/engine/cuckoochess/DroidEngineControl.java index fffef5a..bbecad2 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/engine/cuckoochess/DroidEngineControl.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/engine/cuckoochess/DroidEngineControl.java @@ -71,7 +71,7 @@ public class DroidEngineControl { // Reduced strength variables private int strength = 1000; private boolean limitStrength = false; // If set, overrides strength, using eloToStrength table - private int elo = Integer.MAX_VALUE; + private int elo = 1500; private int maxNPS = 0; private long randomSeed = 0; private Random rndGen = new Random();