Battleship is a web-based implementation of the classic board game. The game allows players to strategically place their ships on the board and engage in battles with an intelligent computer opponent. It provides an interactive and challenging gaming experience, staying true to the essence of the traditional Battleship game.
The project is part of The Odin Project curriculum. Look here for the project source and description.
- Ship Placement: Strategically place your ships on the board, ensuring they are not adjacent to each other for a fair challenge.
- Intelligent Computer Opponent: Face off against a smart computer opponent that retaliates with tactical moves, adding an extra layer of challenge to the game.
- Immersive Experience: Enjoy sounds and animations that bring the game to life, adding a lively touch to your Battleship experience.
To install the project, follow these steps:
git clone https://github.com/shravzzv/ODIN-Battleship-project
cd ODIN-Battleship-project
npm install
Open the dist/index.html
in your browser.
If you want to build on top of this project, you need to run the script npm run dev
to be able to view your changes. Check the package.json for more details.
If you'd like to contribute, follow these steps:
-
Fork the repository on GitHub.
-
Clone your fork locally.
git clone https://github.com/shravzzv/ODIN-Battleship-project cd project-folder
-
Create a new branch for your feature or bug fix.
git checkout -b feature-or-bug-fix-name
-
Make your changes, commit them, and push them to your fork.
git add . git commit -m "Your commit message here" git push origin feature-or-bug-fix-name
-
Open a Pull Request on GitHub, comparing your branch to the original repository's
main
branch.
Find a bug or want to request a new feature? Please let us know by submitting an issue.
This project is licensed under the MIT License - see the LICENCE file for details.