I need some help with my students to end their Star Wars game when a score is reached.
Link to my game
What I expect to happen: When a score of 100 is reached, the game will end
What actually happens: Typo on my if statement. It says score is not defined
What I’ve tried: I’ve tried to define score as a variable what I need to know is what the score is defined as when you are adding and removing points.
Any help with this is greatly appreciated! I feel like there is information that I’m missing to code this correctly.