Skip to content

ANPetru/BattleshipGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

BattleshipGo

Battleship board game for command line made in Go.

Index

1. About

2. Demo

3. How to play

4. Improvement ideas

Battleship is a strategy type guessing game for two players. It is played on ruled grids on which each player's fleet of ships are marked. The locations of the fleets are concealed from the other player.

Players alternate turns calling "shots" at the other player's ships, and the objective of the game is to destroy opossing player's fleet.

Placing your fleet

Demo placing

Shooting enemy's fleet

Demo shooting

Winning

Demo winning

Download this project and extract it in your folder of choice.

Linux

Go to Platforms/Linux in the command line and run ./battleship.

Windows

Go to Platforms\Windows in the file explorer and run battleship.

Player vs player

Currently, you can only play against the IA, it would be nice to be able to play against your friends.

Add actual IA

Currently, IA makes it's turns randomly, it would be nice to add a more competitive IA. An idea would be to shot adjacent cells after hitting a ship.

Releases

No releases published

Packages

No packages published

Languages