Spaces:
Sleeping
Sleeping
Yohaan Seth Nathan commited on
Commit ·
2df9877
1
Parent(s): cd2da51
Fixes to GitHub tests
Browse files- Option 'EvalFile' doesn't exist.
- Comment unused usi options in the config file.
- Fix "Unexpected usi error"
- config.yml.default +3 -3
- tests.py +4 -4
config.yml.default
CHANGED
|
@@ -11,9 +11,9 @@ engine: # Engine Settings.
|
|
| 11 |
homemade_options:
|
| 12 |
# Hash: 256
|
| 13 |
usi_options: # Arbitrary USI options passed to the engine.
|
| 14 |
-
|
| 15 |
Threads: 1 # Max CPU threads the engine can use.
|
| 16 |
-
|
| 17 |
# go_commands: # Additional options to pass to the USI go command.
|
| 18 |
# nodes: 1 # Search so many nodes only.
|
| 19 |
# depth: 5 # Search depth ply only.
|
|
@@ -62,4 +62,4 @@ greeting:
|
|
| 62 |
# {me} to insert bot's name
|
| 63 |
# Any other words in curly braces will be removed.
|
| 64 |
hello: "Hi! I'm {me}. Good luck! Type !help for a list of commands I can respond to." # Message to send to chat at the start of a game
|
| 65 |
-
goodbye: "Good game!" # Message to send to chat at the end of a game
|
|
|
|
| 11 |
homemade_options:
|
| 12 |
# Hash: 256
|
| 13 |
usi_options: # Arbitrary USI options passed to the engine.
|
| 14 |
+
# Move Overhead: 500 # Increase if your bot flags games too often.
|
| 15 |
Threads: 1 # Max CPU threads the engine can use.
|
| 16 |
+
# Hash: 256 # Max memory (in megabytes) the engine can allocate.
|
| 17 |
# go_commands: # Additional options to pass to the USI go command.
|
| 18 |
# nodes: 1 # Search so many nodes only.
|
| 19 |
# depth: 5 # Search depth ply only.
|
|
|
|
| 62 |
# {me} to insert bot's name
|
| 63 |
# Any other words in curly braces will be removed.
|
| 64 |
hello: "Hi! I'm {me}. Good luck! Type !help for a list of commands I can respond to." # Message to send to chat at the start of a game
|
| 65 |
+
goodbye: "Good game!" # Message to send to chat at the end of a game
|
tests.py
CHANGED
|
@@ -103,17 +103,17 @@ def test_bot():
|
|
| 103 |
lishogi_bot.logging.basicConfig(level=logging_level, filename=None, format="%(asctime)-15s: %(message)s")
|
| 104 |
lishogi_bot.enable_color_logging(debug_lvl=logging_level)
|
| 105 |
download_suisho()
|
| 106 |
-
lishogi_bot.logger.info("
|
| 107 |
download_yo()
|
| 108 |
-
lishogi_bot.logger.info("Downloaded YaneuraOu")
|
| 109 |
with open("./config.yml.default") as file:
|
| 110 |
CONFIG = yaml.safe_load(file)
|
| 111 |
CONFIG['token'] = TOKEN
|
| 112 |
CONFIG['engine']['dir'] = './'
|
| 113 |
CONFIG['engine']['name'] = 'yo.exe'
|
| 114 |
-
CONFIG['engine']['usi_options']['
|
| 115 |
run_bot(CONFIG, logging_level)
|
| 116 |
|
| 117 |
|
| 118 |
if __name__ == '__main__':
|
| 119 |
-
test_bot()
|
|
|
|
| 103 |
lishogi_bot.logging.basicConfig(level=logging_level, filename=None, format="%(asctime)-15s: %(message)s")
|
| 104 |
lishogi_bot.enable_color_logging(debug_lvl=logging_level)
|
| 105 |
download_suisho()
|
| 106 |
+
lishogi_bot.logger.info("Download Suisho NNUE")
|
| 107 |
download_yo()
|
| 108 |
+
lishogi_bot.logger.info("Downloaded YaneuraOu for NNUE")
|
| 109 |
with open("./config.yml.default") as file:
|
| 110 |
CONFIG = yaml.safe_load(file)
|
| 111 |
CONFIG['token'] = TOKEN
|
| 112 |
CONFIG['engine']['dir'] = './'
|
| 113 |
CONFIG['engine']['name'] = 'yo.exe'
|
| 114 |
+
CONFIG['engine']['usi_options']['BookFile'] = 'no_book'
|
| 115 |
run_bot(CONFIG, logging_level)
|
| 116 |
|
| 117 |
|
| 118 |
if __name__ == '__main__':
|
| 119 |
+
test_bot()
|