Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 2.31 KB

README.md

File metadata and controls

79 lines (54 loc) · 2.31 KB

Battleship Game -- IN PROGRESS --

This project is a Python implementation of the classic Battleship game. The plan is to enhance it with a graphical interface using Pygame.

Game Overview

In this implementation of Battleship, players set up their ships on a grid and then take turns guessing the locations of their opponent's ships. The goal is to sink all of the opponent's ships before they sink all of yours. This version brings an interactive console-based interface to life, enhanced with colorful output thanks to the Colorama library, making the gameplay experience more engaging and visually appealing.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them:

  • Python (3.x or higher recommended)
  • Pip (Python package manager)

Installing

A step-by-step series of examples that tell you how to get a development environment running:

  1. Clone the repository:

    git clone https://github.com/Nebulaleaf/PyGame_Battleship.git
  2. Navigate to the project directory:

    cd PyGame_Battleship
  3. Create a virtual environment:

    • On Windows:
      python -m venv venv
      venv\Scripts\activate
    • On macOS and Linux:
      python3 -m venv venv
      source venv/bin/activate
  4. Install the required packages:

    pip install -r requirements.txt
  5. Run the application:

    python src/main.py

Structure

The project is structured as follows:

  • assets/: Assets related to the project.
  • docs/: Documentation related to the project.
  • src/: Contains the actual implementation of PyGame aswell as sandbox files.
  • tests/: Test scripts for the game.
  • venv/: Virtual environment for managing dependencies.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgement