https://github.com/uwancha/battleship
A classic battleship game built following TDD
https://github.com/uwancha/battleship
css3 html5 jest tdd-javascript
Last synced: 3 months ago
JSON representation
A classic battleship game built following TDD
- Host: GitHub
- URL: https://github.com/uwancha/battleship
- Owner: Uwancha
- Created: 2023-09-03T19:02:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T20:20:00.000Z (over 1 year ago)
- Last Synced: 2025-01-20T21:39:13.074Z (5 months ago)
- Topics: css3, html5, jest, tdd-javascript
- Language: JavaScript
- Homepage: https://uwancha.github.io/battleship/
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Battleship Game
A classic Battleship game implemented using HTML, CSS, and JavaScript. This project utilizes webpack for bundling and Jest for testing.
## Installation
To run the Battleship game locally, follow these steps:
1. Clone the repository: `git clone https://github.com/uwancha/battleship.git`
2. Navigate to the project directory: `cd battleship`
3. Install the dependencies: `npm install`
4. Build the project: `npm run build`
5. Open the `dist/index.html` file in your preferred web browser.## Usage
1. Take turns attacking the opponent's game board by clicking on the desired coordinates.
2. The game will indicate whether the attack was a hit or a miss.
3. Continue playing until all ships of one player have been sunk.
4. The game will display a message indicating the winner.## Demo
[Live Demo](https://uwancha.github.io/battleship/)
## Technologies and Tools
- HTML
- CSS
- JavaScript
- Webpack
- Jest## Acknowledgements
This Battleship game project was developed as part of [The Odin Project's](https://www.theodinproject.com) full-stack web development curriculum. Special thanks to The Odin Project for providing the resources and guidance.
## Contribution
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue on the GitHub repository.
## License
This project is licensed under the [MIT License](LICENSE).