Posts

Showing posts from March, 2022

Battleships in Terminal With Python

Image
BATTLESHIPS IN PYTHON This is my first project on Codecademy Computer Sciences pathway. The task was to create a terminal based game or application in python, one of the ideas provided was for battleships and it looked interesting. The game randomly places both your ships and enemy ships in the play area. Each player takes it in turn to fire at the opponents ships by entering grid details. Hits or misses are displayed on the grids. When all ship sections of a team are destroyed the game is over and a winner declared. The code can be fount at this link https://github.com/Leah9/battleships please give it a go and let me know if you found it fun or if you find an error. This project was more complex than I initially invisioned but it was satisfying to overcome some of the early issues and making a output function that was both functional and pretty. Looking forward to the next one :)