Skip to content

Commit

Permalink
Widen some steps, expect cutechess/ and books/ dirs inside of tune/
Browse files Browse the repository at this point in the history
  • Loading branch information
eduherminio committed Dec 19, 2023
1 parent 61caf5a commit e30727c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/__pycache__
/venv
/tuner
/venv
4 changes: 2 additions & 2 deletions cutechess.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"engine": "Lynx-2123-tuning.exe",
"book": "UHO_XXL_+0.90_+1.19.epd",
"games": 32,
"book": "books/UHO_XXL_+0.90_+1.19.epd",
"games": 8,
"tc": 8,
"hash": 256,
"threads": 8
Expand Down
4 changes: 2 additions & 2 deletions cutechess.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_cutechess_cmd(
params_b: list[str]
) -> str:
return (
"./tuner/cutechess-cli "
"./tuner/cutechess/cutechess-cli "
f"-engine cmd=./tuner/{self.engine} name={self.engine} proto=uci "
f"option.Hash={self.hash_size} {' '.join(params_a)} "
f"-engine cmd=./tuner/{self.engine} name={self.engine} proto=uci "
Expand All @@ -47,7 +47,7 @@ def get_cutechess_cmd(
f"-concurrency {self.threads} "
f"-each tc={self.tc}+{self.inc} "
f"-openings file=tuner/{self.book} "
f"format={self.book.split('.')[-1]} order=random plies=16 "
f"format={self.book.split('.')[-1]} order=random "
f"-games {self.games} "
"-pgnout tuner/games.pgn"
)
Expand Down
4 changes: 4 additions & 0 deletions tuner/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

0 comments on commit e30727c

Please sign in to comment.