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

https://github.com/aminumado/battleships

A battleship game made with vanilla javascript
https://github.com/aminumado/battleships

html-css-javascript jest npm tdd webpack

Last synced: 2 months ago
JSON representation

A battleship game made with vanilla javascript

Awesome Lists containing this project

README

          

# battleships

🔗 **Live preview:**

View the project here! 👀

Summary

This is a Battleship Game where players take turn dropping bombs on each other until one of the players' ships are all sunk. The Odin Project's javascript curriculum. The goal of this project was to learn how to use test driven development with Jest and factory functions.


Demo GIF

Desktop

![](./src/assets/DemoGif/demo.gif)

### Functionality & Features

- You can place your ships manually.
- You can rotate your ships before placing it on your board.
- `Randomize` button places all your ships randomly on your board for you.

## Built with

### Technologies

- HTML
- CSS
- JavaScript

### Tools

- Visual Studio Code
- Linux terminal
- Git and GitHub
- Npm
- Webpack
- prettier
- eslint

## Outcome

- Used **ES6 Modules** for more modular code.
- Used CSS3 **grid** and **flex** to create layout.
- Used **Git** and **GitHub** for project management.
- Used **Jest** for TDD
- Used **webpack**

## Summary

### What I learned

- ES6 Modules
- Test Driven Development
- Unit Testing with Jest

### Future Fixes

- possibly add a drag and drop feature
- make AI smarter

## Author

👤 **AminuMado**

- GitHub: [AminuMado](https://github.com/AminuMado)