Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

r0hitm/battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship

Battleship Game in JavaScript.

👉 Play the game here.

This project is inspired by the The Odin Project.

I learned

This is my first project of considerable size and complexity. I know that there is a lot of room for improvement, but I am very happy with the results. Here are some of the things I learned in no particular order:

  • Writing modular code
  • Testing with Jest: This was my first time using a testing framework.
  • Using Webpack
  • Using ES6 modules
  • Writing a game loop in JavaScript (this was not easy haha because of the asynchronous nature of JavaScript)
  • Creating a simple AI
  • Using the Factory Pattern