An open API service indexing awesome lists of open source software.

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

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).