battleship/README.md
Roozbeh Karimi b422220e43 Test deploy
2025-10-20 14:40:45 -04:00

42 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Battleship
## The 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 places their ships horizontally or vertically on a 10x10 grid;
this is not visible to their opponent.
- Players take turns to fire at positions on the grid, gradually revealing
where their opponents ships are and are not located.
- A ship is destroyed when every cell of a ship has been hit.
- The winner is the first player to destroy their opponents fleet.
You will lose if:
- You do not place the correct number and size of ships..
- You place your fleet in impossible positions (ships overlapping or partly off
the board).
- Your code raises an exception.
- All your ships have been sunk.
## TECHNOLOGIES
- HTML
- Javascript
- CSS
## SCREENSHOTS
![image](https://user-images.githubusercontent.com/109234009/193694178-36a9af1c-f906-44db-ab0f-43bfb0756771.png)
![image](https://user-images.githubusercontent.com/109234009/193694449-d90ffa80-c312-4e24-9f5d-f946d353504d.png)
## HOW TO PLAY
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"
Deployed Link: [Link](https://www.roozbehk.com/BATTLESHIP/)