Skip to content

ManjulaSai/Battleship_Game

Repository files navigation

Battleship_Game

To test the BattleShip, open the index.html in the browser.

  • [Ships] There are 5 ships in the board.
  • [Hit] Cell value Changes to ‘H’ if there is Ship occupying the position.
  • [Miss] Cell value changes to ‘M’ if no ship occupies the position.
  • [Attacked] Alerted with ‘Already Attacked ‘ if the position has previously been attacked.
  • [Sunk] Cell values changes to S for all the cells Ship is there if attack hits last remaining position of the ship.
  • [Win] Alerted with ‘Win ’ if attack sinks the last remaining Ship.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published