I have a student trying to make a battleship game.
Right now the ships are randomly generated and in groups.
The main issue we’re having right now is having the ability to click on a ship.
We’re mainly looking at ship1 which is the single ship.
Line 68 is an if statement that I can’t figure out. It seems to me that it should work, but doesn’t. I’d love to know if someone can tell me why and maybe a solution to this.
Link to the project or level: [Code.org - Game Lab]