update all to 2.0.0

This commit is contained in:
Kylin_on_Mac
2022-04-29 13:11:21 +08:00
parent 01cb8c4a3b
commit d5a071ed32
23 changed files with 708 additions and 0 deletions

20
config.py Normal file
View File

@ -0,0 +1,20 @@
import sys
from os import path
sys.path.append(path.dirname(__file__))
from mlgame.argument.tool 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"]
GAME_SETUP = {
"game": EasyGame,
# "dynamic_ml_clients":True
}