Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.6 KB

File metadata and controls

48 lines (41 loc) · 1.6 KB

Battleship-in-C

My recent programming assignment revamped and tweaked to function fully as an open source, terminal-based battleship game in C. NOTE: I am new to github and github repository creation/management, so while feedback/criticism is allowed, please try to be kind with it :)

Table of Contents

Introduction

Welcome to Battleship-in-C! This project is a terminal-based implementation of the classic Battleship game, written in C. It is designed to be an open-source project that anyone can contribute to and enjoy.

Features

  • Classic Battleship gameplay
  • Single-player mode against a semi-intelligent enemy AI
  • Simple and intuitive terminal interface
  • Easy to understand codebase for learning purposes

Installation

To get started with Battleship-in-C, follow these steps:

  1. Clone the repository:
    git clone https://github.com/yourusername/Battleship-in-C.git
  2. Navigate to the project directory:
    cd Battleship-in-C
  3. Compile the program:
    gcc -o battleship main.c

Usage

To play the game, simply run the compiled C executable:

./battleship

Follow the on-screen instructions to place your ships and start the game.

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

License

TBD