Back to State Builder
OOP Studio Ages 9-15

State Challenge: Energy Rescue

Use methods to match Fizz’s energy to each mission target.

10-15 minAges 9-15OOP ChallengeJavaScript
Your Mission

Help Fizz reach the exact target energy before the moves run out.

play()takes away 1 energy
snack()adds 1 energy
recharge()sets energy to 5

Think first: What will Fizz’s energy be after you press the method?

Mission 1 of 3

Wake Fizz for launch!

Fizz has 1 energy. Reach exactly 3 energy in two moves.

START 1 TARGET 3

Choose the next method

JavaScript calls Choose a method.

Watch the current energy and aim for the target.

CURRENT1
TARGET3
MOVES LEFT2
Fizz the pink alien
Energy: 1