Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/haminimi/battleship

Battleship is a strategy type guessing game for two players. It is played on ruled grids on which each player's fleet of warships are marked. The locations of the fleets are concealed from the other player.
https://github.com/haminimi/battleship

battleship battleship-game drag-and-drop draganddrop game game-development javascript javascript-game jest jest-test test-driven-development testdrivendevelopment testing

Last synced: 7 days ago
JSON representation

Battleship is a strategy type guessing game for two players. It is played on ruled grids on which each player's fleet of warships are marked. The locations of the fleets are concealed from the other player.

Awesome Lists containing this project

README

        

# Battleship 🚒
![Screenshot of the Battleship game.](/screenshot.png)
## Description
[Battleship](https://en.wikipedia.org/wiki/Battleship_(game)) is a strategy type guessing game for two players. It is played on ruled grids on which each player's fleet of warships are marked. The locations of the fleets are concealed from the other player. Players alternate turns calling "shots" at the other player's ships, and the objective of the game is to destroy the opposing player's fleet. [The project](https://www.theodinproject.com/lessons/node-path-javascript-battleship) is a part of [The Odin Project](https://www.theodinproject.com/dashboard)'s curriculum. The Odin Project provides a high quality web development education maintained by an open source community.
## [Live Preview](https://haminimi.github.io/battleship/)
If you're interested in achieving a fast victory, try using the cheat function in your developer console:
```javascript
cheat()
```
## Main Features
- **Drag and Drop:** A user can place its ships on the grid using a handy drag-and-drop system.

**To Do:**
- [ ] **Responsive Design**
- [ ] **Improve Computer Intelligence**
## Tech
**The project is built with:**
- HTML
- Vanilla JavaScript
- Vanilla CSS

**Tools**
- Visual Studio Code
- Git
- Jest
## Covered Topics
**This section mentions the main topics covered during project work and prior lessons**
- Test Driven Development
- Unit Testing
- Jest
- Drag and Drop
## Reflection
The computer opponent at the moment is not particularly powerful, and that's the main thing on a to do list for this project. The intelligence of the computer player should be improved by having it try adjacent slots after getting a β€˜hit’.
## Credits
- Icon used for the favicon image is one of the [Battleship icons created by Freepik - Flaticon](https://www.flaticon.com/free-icons/battleship).
## Happy coding!