/Battleship

This program mimics the original battleship boardgame, allowing the user to place battleships of different sizes on a playing field and then play against the computer until one side has sunken the other's ships.

Primary LanguageJavaScript

🚤 💣 Battleship

This project implements the concepts of Callbacks, Object Oriented Programming, Factory Functions, Module Pattern, Single Responsibility, and Test Driven Development.
To handle the complexity of synchronizing the views with data changes, I created an Observable object on which can be attached handlers. The Observable class is located in ./src/utils.js.
To simplify the view codes, a support to JSX syntax was added.

Battleship

Technogies

  • Javascript
  • JSX
  • HTML5
  • CSS3

🔌 Set up

To run the project:

  • Clone the repository: https://github.com/FabienNeibaf/Battleship
  • Run npm install. It will install all the dependencies required by the project
  • Run npm start to start the development server. It will automatically open the page in your default browser.

💻 Live demo

✏️ Contribute

Feel free to contribute if you want to make it better.

Author

Follow me