Skip to content

b1g-glitch/battleships

Repository files navigation

Battleships Python Project

Author: Temitopeoluwa Ajayi 710082668 ta504@exeter.ac.uk

Description

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.

Features

  • Board setup and display
  • Player input validation
  • Ship placement
  • Turn-based gameplay
  • Win conditions

How to Execute

  1. Navigate to the project directory: battleships
  2. Open the file main.py
  3. Run the game: main.py
  4. To place the ships and send game, beside the server, type/placement

Version

  • Python 3.11

Acknowledgments

  • Inspired by the classic Battleships game.

Self Assessment

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.

About

Programming Project, circa September 2023, as taught by Matt Collison at the University of Exeter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages