Author: Temitopeoluwa Ajayi 710082668 ta504@exeter.ac.uk
This project implements the classic game Battleships in Python. The game features player vs. AI functionality. Players can place their ships on a grid and take turns attempting to sink their opponent's fleet.
- Board setup and display
- Player input validation
- Ship placement
- Turn-based gameplay
- Win conditions
- Navigate to the project directory:
battleships - Open the file
main.py - Run the game:
main.py - To place the ships and send game, beside the server, type
/placement
- Python 3.11
- Inspired by the classic Battleships game.
The Battleships Python project features a fully functional game with player vs. AI capabilities. The game includes a grid-based board, ship placement, player turns, and AI logic for strategic gameplay. The code is modular, adhering to best practices, with a well-organized structure. Error handling ensures a smooth user experience. I did have issues in the beginning trying to run the main.py file but i got it sorted and I'm glad to say it works.