Skip to content

LuisFernandoVillalon/Battleship-TOD

Repository files navigation

Battleship

Project: Battleship game application - The Odin Project

Summary

This application allows the user to play the classic game of Battleship against a computer. The application first asks for the user to inpu their name. Then the application will ask the user to set their 5 boats on the gameboard. Once the ships have been set the game can begin. Everytime the user clicks on a cell the computer's gameboard, the gameboard will indicate whether the user hit a target ship or missed. Whenever the user clicks on a computer gameboard cell, the computer automatically runs their turn. The computer's decision is random. The computer's boats are set to be in the same position every game.

Technologies

HTML, CSS, JavaScript, Modules, Jest