I built this project to learn a bit about unit testing using jest. Additionally DSA graph implementation, keeping code organized, and imperative programming using JS. I used CSS frameworks like Tailwind with DaisyUI to style a few parts and picket the colors myself.
- Player vs Computer
- Random ship placements
- Competent computer bot that hunts once it lands a hit
- Ship health tracker
- A modern web browser that supports JavaScript.
- Basic understanding of HTML, CSS, and JavaScript.
- Node.js and npm.
- Clone the repository:
git clone git@github.com:MclPio/battleship.git
- Navigate to the project directory:
cd battleship
- Install dependencies:
npm install
- Build dist
npm build
- (Optional) start the development server:
npm start