Skip to content

STPDRichie/Battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation


Attention

The site background reflects only the quality of the project (partly) and does not try to offend anyone. Thanks for understanding.


Game rules

1. Board size fixed - 10x10 cells

2. Ships line up in a straight line, horizontally or vertically

3. Ships cannot be placed on another ship neighbor cells

4. All cells within a radius of 1 from the ship are considered neighbors, including diagonal ones

For example

5. The players take turns. No extra turn after hit

For example

Rules-5


Functionality

1. For multiplayer game you should have the host's session key

For example

Func-1

2. During ships placing the cells in which the ship will be placed are highlighted

For example

Func-2

3. Ship and its direction selecting doing with the buttons

For example

Func-3

4. The battle will begin as soon as both players place all ships

5. Player whose turn will be first chooses randomly

For example

Func-4-5

6. During the battle there is the panel with the remaining ships of players

For example

Func-6

7. If you will lose, the opponent's remaining ships will be shown on his board

8. At the end of the game interaction with the boards and buttons becomes unavailable

For example

Func-7-8

9. The game can be restarted using the button on the page panel at any state

For example

Func-9

10. Game restart is available only to the host

For example

Func-10