Merge branch 'feature/update_to_fit_mlgame_9_5' into develop

# Conflicts:
#	README.md
#	config.py
This commit is contained in:
Kylin_on_Mac
2022-08-19 13:51:27 +08:00
10 changed files with 62 additions and 61 deletions

View File

@ -2,20 +2,9 @@ import sys
from os import path
sys.path.append(path.dirname(__file__))
from mlgame.utils.parse_config import read_json_file, parse_config
from .src.game import EasyGame
config_file = path.join(path.dirname(__file__), "game_config.json")
config_data = read_json_file(config_file)
GAME_VERSION = config_data["version"]
GAME_PARAMS = parse_config(config_data)
# will be equal to config. GAME_SETUP["ml_clients"][0]["name"]
from src.game import EasyGame
GAME_SETUP = {
"game": EasyGame,
"ml_clients": EasyGame.ai_clients(),
# "dynamic_ml_clients":True
}