Battleship is a strategy game about sinking opposing ships before they sink yours.
This project implements an online version of this classic game.
To play this game, you will need :
+ A computer running Go and able to connect to the Internet
+ A terminal or terminal emulator
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
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.
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