renamed files
This commit is contained in:
parent
90c8364e40
commit
574d79947b
|
|
@ -37,3 +37,5 @@ Both game modes include:
|
||||||
### GUI
|
### GUI
|
||||||
|
|
||||||
- Add the CPU
|
- Add the CPU
|
||||||
|
- animations
|
||||||
|
- make the cursor follow the mouse
|
||||||
|
|
@ -256,9 +256,7 @@ def cpu_move_provider(player, board):
|
||||||
try:
|
try:
|
||||||
with open("settings.json", "r") as f:
|
with open("settings.json", "r") as f:
|
||||||
settings = json.load(f)
|
settings = json.load(f)
|
||||||
print(f"Settings: {settings}")
|
|
||||||
search_depth = settings.get("cpu_search_depth", 5)
|
search_depth = settings.get("cpu_search_depth", 5)
|
||||||
print(f"search depth: {search_depth}")
|
|
||||||
except (FileNotFoundError, json.JSONDecodeError):
|
except (FileNotFoundError, json.JSONDecodeError):
|
||||||
search_depth = 5
|
search_depth = 5
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"display_mode": "emojis",
|
"display_mode": "coloured_background",
|
||||||
"cpu_search_depth": 5
|
"cpu_search_depth": 5
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user