Gameplay - SelenaYap/Battleship GitHub Wiki
Gameplay
Objective of the game:
The goal of Battleship game is to try and sink all your enemy’s or other player’s ships first before he or she sink all of your ships.
Starting the game:
Each player has their own board and ships. Players place their ships somewhere on their board. The ships are Aircraftcarrier which occupies 5 spaces, Battleship which occupies 4 spaces, Frigate which occupies 3 spaces, Submarine which occupies 3 spaces as well and lastly, Minesweeper which occupies 2 spaces. The ships only can be placed horizontally or vertically and cannot be placed diagonally. No part of a ship may hang off the edge of the board or overlap each other board or even be placed on other ship. Keep this in mind, each player cannot see his or her opponent’s ships on his or her board. Therefore, the other player’s ships are hiding somewhere on his or her board so each player must try to guess where they are.
Playing the game:
Each player takes turns guessing where his or her opponent’s ships by choosing the coordinates. The opponent responds with “hit” or “miss”. For example, it is your turn, you guess and choose a coordinate from your opponent’s board which you can’t see your opponent’s ships are located. If the coordinate you guess and choose is where any ship is located, then it is a hit and you can continue guessing and choosing a coordinate until you miss. If you miss, then it is your opponent’s turn and the same apply to your opponent if he or she hits or miss any of your ship. Other than that, both player must have their board marked red for hit and white for miss. When all of the squares that any of your ship occupies have been hit, then the ship will be sunk and your response will be “hit and sunk”. The same goes for your opponent. The first player who sinks all opposing ships wins and the game ends.