Skip to content

Latest commit

 

History

History
36 lines (34 loc) · 1.84 KB

README.md

File metadata and controls

36 lines (34 loc) · 1.84 KB

Battleship 🚢

Screenshot of the Battleship game.

Description

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. 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 is a part of The Odin Project's curriculum. The Odin Project provides a high quality web development education maintained by an open source community.

If you're interested in achieving a fast victory, try using the cheat function in your developer console:

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

Happy coding!