The project uses JavaScript and SVG elements to create the game.
Most of the game's logic exists in the "game.js" file, which provides thorough explanations for some all of the variables and functions.
Here's how the game works:
The Game
class is created.
It creates two Player
objects.
Each player object is given a first turn, where they create and place 1-5 Ship
objects.
Then, each player is given "targeting"
turns until someone wins.
There are unused assets (carrier.svg) in the /assets
folder that would make a beautiful improvement to the game board if completed.
Our group was uncertain about the interpretation of "Number of Ships (per player)" and interpreted it to mean that each player chooses their own number of ships.