Zeeshan-2k1 / battleship

A 2-Player real time online board game

Home Page:https://battleship-liart.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battleship

Battleship is a web-based replica of the classic board game where players engage in real-time battles against each other. It's a 2-player game where participants strategically place their ships, namely Carrier, Battleship, Cruiser, Submarine, and Destroyer, each with varying health levels. The objective is to sink all the opponent's ships before they sink yours.

Battleship Rule Set

Battleship is a classic board game adapted into a web-based, real-time 2-player game. The following rule set outlines the gameplay mechanics and guidelines for Battleship:

Objective:

  • The objective of Battleship is to sink all of your opponent's ships before they sink yours.

Game Setup:

  1. Ships : Each player has the following ships:
  • Carrier (5 squares)
  • Battleship (4 squares)
  • Cruiser (3 squares)
  • Submarine (3 squares)
  • Destroyer (2 squares)
  1. Board : The game is played on a 11x11 grid.
  2. Placement : Players take turns placing their ships on their respective boards without overlapping or extending beyond the boundaries of the grid.

Gameplay:

  1. Turns : Players take alternate turns to attack each other's ships.
  2. Attacks : On each turn, a player selects a square on the opponent's grid to attack. The opponent must announce whether the attack is a hit or a miss.
  • If the attack hits a ship, the player marks the square as a hit.
  • If the attack misses all ships, the player marks the square as a miss.
  1. Sinking Ships : When all squares of a ship are hit, the ship is considered sunk.
  2. Announcing Hits and Misses : Players must announce whether an attack hits or misses the opponent's ships to maintain fair gameplay.

Winning the Game:

  • The game continues until one player successfully sinks all of their opponent's ships.
  • The player who sinks all of their opponent's ships first is declared the winner.

End of Game:

  • Once a winner is determined, the game concludes, and players can start a new game if desired.

Rule Enforcement:

  • Players must adhere to the rules outlined above to maintain fair gameplay.
  • Any violations or disputes should be resolved amicably between the players.

Have Fun!

Battleship is a game of strategy, skill, and anticipation. Enjoy the challenge of outsmarting your opponent and sinking their ships while protecting your own. May the best strategist win!

About

A 2-Player real time online board game

https://battleship-liart.vercel.app

License:Other


Languages

Language:TypeScript 89.8%Language:CSS 6.1%Language:HTML 3.3%Language:JavaScript 0.8%