A classic game of strategy and skill.
The Battleship Game is a turn-based strategy game where you try to sink your opponent's fleet of ships before they sink yours. This version is implemented as a web application.
- Place your ships on the player board. You can place them horizontally or vertically by clicking on the ship and then on the board.
- Once all ships are placed, click the "Start Game" button to begin.
- Take turns with the computer to attack each other's board. Click on a cell on the computer's board to attack.
- If you hit a ship, the cell will be marked in red. If you miss, it will be marked in blue.
- The first player to sink all the opponent's ships wins the game!
-
Clone the repository:
git clone https://github.com/icep0ps/battleships.git cd battleship
-
Install the dependencies:
npm install
-
Build the project using Webpack:
npm run build
- Run the tests using Jest:
npm test
- TypeScript: For type-safe JavaScript development.
- HTML: For the structure of the web application.
- CSS: For styling the game.
- Webpack: For bundling the assets and modules.
- Jest: For testing the application.
Enjoy playing the Battleship Game!