Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/haminimi/battleship
- Owner: Haminimi
- Created: 2024-01-03T11:22:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T12:59:08.000Z (8 months ago)
- Last Synced: 2024-11-14T03:13:09.214Z (2 months ago)
- Topics: battleship, battleship-game, drag-and-drop, draganddrop, game, game-development, javascript, javascript-game, jest, jest-test, test-driven-development, testdrivendevelopment, testing
- Language: JavaScript
- Homepage: https://haminimi.github.io/battleship/
- Size: 198 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!