diff --git a/src/option.h b/src/option.h index 251d7194..b0cab86d 100644 --- a/src/option.h +++ b/src/option.h @@ -180,7 +180,7 @@ public: protected: private: - int skillLevel { 20 }; + int skillLevel { 1 }; int moveTime { 1 }; bool aiIsLazy { false }; bool isAutoRestart { false }; diff --git a/src/ucioption.cpp b/src/ucioption.cpp index d52e4e3c..d22ad9a1 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -165,7 +165,7 @@ void init(OptionsMap &o) o["Clear Hash"] << Option(on_clear_hash); o["Ponder"] << Option(false); o["MultiPV"] << Option(1, 1, 500); - o["SkillLevel"] << Option(20, 0, 20, on_skill_level); + o["SkillLevel"] << Option(1, 0, 20, on_skill_level); o["MoveTime"] << Option(1, 0, 60, on_move_time); o["AiIsLazy"] << Option(false, on_aiIsLazy); o["Move Overhead"] << Option(10, 0, 5000); diff --git a/src/ui/flutter_app/lib/common/config.dart b/src/ui/flutter_app/lib/common/config.dart index 3675a776..ce1759f3 100644 --- a/src/ui/flutter_app/lib/common/config.dart +++ b/src/ui/flutter_app/lib/common/config.dart @@ -27,7 +27,7 @@ class Config { static bool toneEnabled = true; static bool aiMovesFirst = false; static bool aiIsLazy = false; - static int skillLevel = 20; + static int skillLevel = 1; static int moveTime = 1; static bool isAutoRestart = false; static bool isAutoChangeFirstMove = false; @@ -73,7 +73,7 @@ class Config { Config.toneEnabled = settings['ToneEnabled'] ?? true; Config.aiMovesFirst = settings['AiMovesFirst'] ?? false; Config.aiIsLazy = settings['AiIsLazy'] ?? false; - Config.skillLevel = settings['SkillLevel'] ?? 20; + Config.skillLevel = settings['SkillLevel'] ?? 1; Config.moveTime = settings['MoveTime'] ?? 1; Config.isAutoRestart = settings['IsAutoRestart'] ?? false; Config.isAutoChangeFirstMove = settings['IsAutoChangeFirstMove'] ?? false; diff --git a/src/ui/qt/game.cpp b/src/ui/qt/game.cpp index 4cf24207..2bd38548 100644 --- a/src/ui/qt/game.cpp +++ b/src/ui/qt/game.cpp @@ -133,7 +133,7 @@ void Game::loadSettings() setFixWindowSize(empty ? false : settings->value("Options/FixWindowSize").toBool()); setSound(empty ? true : settings->value("Options/Sound").toBool()); setAnimation(empty ? true : settings->value("Options/Animation").toBool()); - setSkillLevel(empty ? 20 : settings->value("Options/SkillLevel").toInt()); + setSkillLevel(empty ? 1 : settings->value("Options/SkillLevel").toInt()); setMoveTime(empty ? 1 : settings->value("Options/MoveTime").toInt()); setAiIsLazy(empty ? false : settings->value("Options/AiIsLazy").toBool()); setShuffling(empty ? true : settings->value("Options/Shuffling").toBool());