A (very) simplified game of Battleship.
Exposes a list of games and the possibility to create a new random game. The game is unidirectional - only the player attacks the opponent's board until all ships are killed
GET games/- get all games (in progress and finished)POST games/- create a new random gameGET games/<id>/- get a game with the givenPOST games/<id>/attack/- attack a cell in the game. Requires a payload of row and column. e.g.{"row": 3, "column": 4}
- Install PostgreSQL
- create a user. Default:
bs_admin createdb battleship- create the default database- Create a virtual env for the project
pip install -r requirements.txt- install project dependenciespython manage.py test- run the tests to confirm everything is okpython manage.py runserver- run the server and enjoy :)