The idea is to design a framework that can integrate different turn based multiplayer games.
The python version supported is python 3.6+
.
All required classes and methods to implement a new game are defined in the template.py
Only additional import required is the func_timeout
module. Install with: pip3 install func_timeout
There are three give general agents that will work with any game under directory agent/staff_team_random: first_move.py, random.py and timeout.py.
The game can be run with specified runner. The only difference between runner is the first two line of the code (importing different game files.) The options can be found with following command:
python .\azul_runner.py -h
If running Sequence, note that the game will start in fullscreen mode. Press F11 to toggle fullscreen. The game's activity log now appears as a separate window.
- save the print as log
- save replay
- play saved replay file
- run multiple games in sequential
- Azul
- Reversi (No GUI)
- Sequence
In order for students to import their customized python file, they will have to add their team name into the path. For example:
import agents.staff_team_random.timeout