Skip to content

itsmimzi/battleship-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Battleship 🚢

⚓ Description

A simple python implementation of the classic Battleship game with a basic artificial intelligence (AI) opponent. The game is built using a straightforward console interface, making it easy to understand and play. The AI opponent employs a simple strategy to make its moves, providing a basic but functional challenge for players. This version of the Battleship game features a graphical user interface (GUI) implemented using Pygame.

⚓ Features

  • Game Logic: The core functionality of the Battleship game, including player and AI boards, ship placement, and attack resolution.
  • AI Opponent: An AI opponent with a simple strategy for making moves, enhancing the single-player experience.
  • GUI: A user-friendly console interface to facilitate player interactions and provide a clear view of the game state.

⚓ Prerequisites

  • Python 3.x
  • Pygame

⚓ Setup

To play the Battleship game with the Pygame GUI:

  1. Clone the repository to your local machine.
  2. Install Pygame using the command: pip install pygame
  3. Run the GUI.py file to start the game with the graphical interface.

💁‍♀️ Feel free to explore and enhance the graphical aspects of the game or experiment with different AI strategies within the Pygame environment!

About

A Python implementation of the classic Battleship game with a basic (AI) artificial intelligence opponent.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages