The live link can be found here - (https://battleshippp.herokuapp.com/)
Ultimate Battleship game is a two player game, which runs in python terminal and is deployed on heroku.
In battleship game user play against computer and try to beat him by destroying the ships. whoever hit all the ships before the other player wins.
Battleship game is multiplayer game, in which user play's against computer. After the welcome secreen user is asked to enter the X, Y co-ordinates. when user enter the co-ordinates these co-ordinates are checked by the validate method. if the co-ordinates are not valid it is prompt to enter valid co-ordinates again. if the co-ordinates are valid then checks if the input co-ordinates hit any ship. if it hits a ship place * if not the place X. if all the ships are hit. whoever hit them before wins.
- Stores individual score
- Ships are placed randomly
- The player cannot see oppnent's ships.
- Accepts user input
- validates inputs
- you cannot enter co-ordinates outside grid
- you must enter number
- you cannot enter the same guess twice.
- Python is used to develope the game.
- Lucid Chart was used to show the workflow of the game.
- Github is used to store the project.
PEP8 was used to used the code. All the method to checks input validation are there and tested.
There is no bug in the game.
On completion the game is pushed to github. Then Heroku is used the deploy the app.
- Steps for deploymnent
- Create a new Heroku app
- set the buildpacks to Python and NodeJs
- Link the Heroku app to the repository
- lick on Deploy
- Code Institute for the deployment terminal.
- Stackoverflow for the programing help.
- wikipedia for detail information of the game.