Welcome to the Battleship Game, a classic naval combat game where you face off against the computer in a strategic battle to sink each other's fleets. This project is a web-based version of the traditional board game, allowing players to enjoy the game from their browsers.
Try out the game - Press Here
Setup Phase: Click the "Create Board" button to randomly place your fleet on the board. You can regenerate the board as many times as you like before starting the game.
Battle Phase: Once you're ready, click the "Start" button. Click on the enemy's board to select where to fire. The game will automatically switch turns between you and the computer. The objective is to sink all of the opponent's ships.
Winning the Game: The first to sink all of the opponent's ships wins the game.
HTML & CSS: For structuring and styling the web page. JavaScript: To provide the game logic and interactivity.
Interactive UI for both setup and gameplay. Randomized ship placement with the option to regenerate your fleet's layout. Probability-based AI for challenging gameplay.