Skip to content

n0laja00/Battleships

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleships

A game of Battleships made with c#!

Features

  • choose the size of the board (1 - 5 grid)
  • choose a number of ships (1 - size of the board)
  • ships are randomly placed on the board with a random orientation image

Run through

Ships are placed randomly on the board with random orientations. You as the captain can shoot any cell you wish on the grid. Upon shooting, you will either hit or miss. After this, the game will print the remaining number of enemy ships, regardless if it was a hit or miss. The game will also calculate all the possible placements of the ships on board, excluding the ships whose position is known. If you hit a ship 2 times, the game will inform you if the ship you shot is vertically or horizontally aligned.

Example of a Vertically aligned. image

When there are no more unknown valid placements left, as in the player knows the locations of all the ships, the player will be informed. image

The game will end when there are no more ships left.

About

A game of Battleships made with c#!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages