- Run the command below to start the game. If you don't have the Docker environment, you can run the game directly.
cd src
python game.py
I also provide the Dockerfile that you can run the game directly.
make build
make game
- Steps
- Generate Arena object.
- Setup
Knight
andItem
chess. - Read instructions from moves.txt
- An instruction is a round
- Move knight, check drowned or alived
- Knight try to pickup a equipment.
- Knight try to battle, winner kill loser.
- Print map
- Generate
final_state.json
file.
- The Chess class is a base class for all kinds of chess.
Knight
inherited fromChess
.