This repo is for game web app, now it only contains the connect four game, but feel free to add more games
apps - web app, blueprints - flask bp & response logic configs - config files game - enviroment for different games model_data - file to store game data services - main services strategy - strategy file for games tests - test tools tools - tool functions utils - util tool, (utilize tools) manager.py main process
MVC - model, view, controller
-
need a server, GPU is perfered
-
build a new conda eniroment(optional)
conda create --name game_engine python==3.9
- change the env path to local conda env in util init.py
ENV_PATH = ''
- install requirements
pip setup.py develop
- config files
connect_four_web_config.py
- start/ stop/ restart web server
manager connect_four start
manager connect_four stop
manager connect_four restart
view: crontab -l screen -ls