You'll find here a terminal-based Naval Warfare game that plays by itself! You only need to pass the initial configuration, and then the program will simulate a game!
It uses Docker to setup the environment, so you don't need to install on your system the Python project dependencies! But, if you prefer, the pipenv
files (Pipfile
and Pipfile.lock
) is also available so you can install everything on your computer!
There's a game already setup that you can find here, so if you only want to see a game being played, just type on your favorite shell:
- If you have
docker-compose
:
docker-compose run play-game python main.py < games/game_1.in
- If you don't have Docker, be sure that you have at least Python 3.8:
python main.py < games/game_1.in
Wanna run the tests:
- With
docker-compose
:
docker-compose run tests
- If you don't have Docker, install the
dev-packages
fromPipfile
and run:
pipenv run tox