Complete package to organise AI contests.
Clone repository, create the Database in your MySQL server by sourcing the file db/init.sql
and create the file db/secret.json
by following the format:
{
"db":{
"host":"DB_HOST",
"user":"DB_USER",
"password":"DB_PASSWORD",
"database":"Eistiade"
},
"core":{
"addr":"CORE_HOST",
"port":CORE_PORT,
"boss":"python3 boss.py",
"nbWorkers":8
},
"web":{
"addr":"WEB_HOST",
"port":WEB_PORT,
"timeout":10000
}
}
The game played can be modified by changing the file core/game.py
and following the example given. If necessary change the fight loop of the core/core.py
file.
Once intalled and configured run the following lines:
cd core/
sudo python3 manager.py
cd ../web/server/
node app.js
If the processes are stopped, the contest can be resumed by simply rerunning these lines. To start a new fresh contest, you can clear all datas by running the following lines:
cd db/
sudo python3 clean.py
Heavily inspired from CodinGame.