push to gitea
This commit is contained in:
parent
3d8d047786
commit
6879c06594
51
README.md
51
README.md
|
|
@ -1,52 +1,41 @@
|
||||||
Battleship
|
# Battleship
|
||||||
==========
|
|
||||||
|
|
||||||
The game
|
## The game
|
||||||
--------
|
|
||||||
|
|
||||||
Long version: [see wikipedia](https://secure.wikimedia.org/wikipedia/en/wiki/Battleship_game)
|
Long version: [see wikipedia](https://secure.wikimedia.org/wikipedia/en/wiki/Battleship_game)
|
||||||
|
|
||||||
* Each player starts with a fleet of 5 ships, of length 5, 4, 3, 3, and 2.
|
- Each player starts with a fleet of 5 ships, of length 5, 4, 3, 3, and 2.
|
||||||
* Each player places their ships horizontally or vertically on a 10x10 grid;
|
- Each player places their ships horizontally or vertically on a 10x10 grid;
|
||||||
this is not visible to their opponent.
|
this is not visible to their opponent.
|
||||||
* Players take turns to fire at positions on the grid, gradually revealing
|
- Players take turns to fire at positions on the grid, gradually revealing
|
||||||
where their opponent’s ships are and are not located.
|
where their opponent’s ships are and are not located.
|
||||||
* A ship is destroyed when every cell of a ship has been hit.
|
- A ship is destroyed when every cell of a ship has been hit.
|
||||||
* The winner is the first player to destroy their opponent’s fleet.
|
- The winner is the first player to destroy their opponent’s fleet.
|
||||||
|
|
||||||
You lose if:
|
You will lose if:
|
||||||
|
|
||||||
* You do not place the correct number and size of ships.
|
- You do not place the correct number and size of ships.
|
||||||
* You place your fleet in impossible positions (ships overlapping or partly off
|
- You place your fleet in impossible positions (ships overlapping or partly off
|
||||||
the board).
|
the board).
|
||||||
* Your code raises an exception.
|
- Your code raises an exception.
|
||||||
* All your ships have been sunk.
|
- All your ships have been sunk.
|
||||||
|
|
||||||
TECHNOLOGIES
|
## TECHNOLOGIES
|
||||||
--------------
|
|
||||||
* HTML
|
- HTML
|
||||||
* Javascript
|
- Javascript
|
||||||
* CSS
|
- CSS
|
||||||
|
|
||||||
|
## SCREENSHOTS
|
||||||
|
|
||||||
SCREENSHOTS
|
|
||||||
--------------
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## HOW TO PLAY
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
HOW TO PLAY
|
|
||||||
--------------
|
|
||||||
|
|
||||||
Use player random button to place your ships on the board, when you finish hit the start button.
|
Use player random button to place your ships on the board, when you finish hit the start button.
|
||||||
|
|
||||||
There is a "Do Not Cheat button" that shows enemy ships. again "DO NOT CHEATE"
|
There is a "Do Not Cheat button" that shows enemy ships. again "DO NOT CHEATE"
|
||||||
|
|
||||||
|
|
||||||
Deployed Link: [Link](https://www.roozbehk.com/BATTLESHIP/)
|
Deployed Link: [Link](https://www.roozbehk.com/BATTLESHIP/)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user