Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.25 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.25 KB

Battleship

Battleship is a strategy game about sinking opposing ships before they sink yours.

This project implements an online version of this classic game.

Conditions

To play this game, you will need :

+ A computer running Go and able to connect to the Internet
+ A terminal or terminal emulator

Installation

To install this game on your computer, follow these steps:

+ Download or clone this repository to your computer
+ Open a terminal and navigate to the game directory
+ Type the make command to compile the source code
+ Type the command ./battleship to launch the game

Usage

To play this game, you will first need to create an account by entering your username and the program will return your IP address which you can share with your opponent to play together.

Once your account is created, you can start playing by following the instructions on the screen. You will need to enter the coordinates of your attack in the form of A5, D9, etc.

Features

Here are the main features of this game:

+ Account creation
+ Placement of random ships
+ Movement of ships
+ Attacking opposing ships
+ Checking the status of ships (sunk or not)
+ Ability to play music in the background
+ Display the game map