Skip to content

negiDharmendra/battle_ship_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Each player starts with a fleet of 5 ships, of hole 5, 4, 3, 3, and 2.

There will be two grids. One is ocean grid and other one is target grid.

Each player places their ships horizontally or vertically on a 10x10 ocean grid; this is not visible to their opponent.

Player can't place his ship out side the ocean grid and also one ship can't be placed on the other ship.

Diagonal placement of ship is not allowed.

Players take turns to fire at positions on the grid, and get information about the shoot whether it has been hit or missed.

A ship is destroyed when every hole of a ship has been hit.

The winner is the first player to destroy their opponent’s fleet.

Important: - If any fellow wants to add more functionality or edit the programm, before going forward that fellow has to run a command " npm install".

About

It is a cool two player battle ship game. which can be played on two computers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published