Skip to content

This project is a Battleship game where the development process is guided by Test-Driven Development. It is part of The Odin Project, testing section.

Notifications You must be signed in to change notification settings

jacob-guerrero/odin-battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odin-battleship

This project is a Battleship game where the development process is guided by Test-Driven Development. It is part of The Odin Project, testing section.

Description

This project is a classic board game called Battleship, it is implemented using HTML, CSS, and JavaScript. It allows players to play the popular Battleship game against a computer opponent.

Features

  • Player vs. Computer mode
  • Drag and drop ship placement
  • Ship sinking style
  • Computer intelligence

Installation

To play Battleship Game, simply clone the repository to your local machine and open index.html in a web browser.

git clone https://github.com/jacob-guerrero/odin-battleship.git
cd battleship-game

Usage

  1. Open index.html in your web browser.
  2. Drag and drop your ships onto the game board.
  3. Click on "Start Game" to begin playing.
  4. Have Fun!

Configuration

No configuration is required to play Battleship Game.

Contributing

If you'd like to contribute to Battleship Game, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request.

Credits

Demo

You can try out a live demo of Battleship Game here.

FAQ

Q: Can I customize the game settings? A: Currently, Battleship Game does not have customizable settings, but you can fork the repository and modify the code to add new features.

Q: How does the computer AI work? A: The computer AI uses a simple algorithm to intelligently choose its next move, aiming to target ships that have not yet been sunk.

Q: Is Battleship Game mobile-friendly? A: It was initially designed to work on desktop but it works in mobile devices too (preferably with the desktop site option activated).

About

This project is a Battleship game where the development process is guided by Test-Driven Development. It is part of The Odin Project, testing section.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published