Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship Game

Skærmbillede 2024-06-20 kl  11 16 32

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

How to Play

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.

Technologies Used

HTML & CSS: For structuring and styling the web page. JavaScript: To provide the game logic and interactivity.

Features

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.

About

Battleship game javascript

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages