This is a take on the post 2002 version of the classic game Battleship, created for the odin project's battleship project, adhering to their specification.
- A semi-intelligent AI opponent to play against.
- Hits adjacent tiles if the last one was successful.
- Drag and drop placement of ships.
- Responsive design.
- Unit tests for logical modules
gameboard
,player
andship
.
HTML, CSS, JavaScript, Jest, Webpack
Clone the project
git clone https://github.com/Aureatus/Battleship.git
Go to the project directory
cd Battleship
Install dependencies
npm install
create a production build
npm run build
then open dist/index.html
Or run the dev environment
npm run serve