Google
for Education
Skip to content
CS First
Curriculum
Hour of Code®
Google
For Education
CS First
Curriculum
Hour of Code®
Help center
Sign in
Playback Speed:
Slow
Normal
Fast
Transcript
Instructions
Add a variable named "hits" to your game.
Keep track of the batter's hits using "change by."
Make the program wait 0.2 seconds before running the loop again.
Reset the number of hits to 0 at the beginning of the game.
namespaces/google.engedu.csfirst/contents/Activity-37650081245595929397365757200484353286
en