Rotate your device.
Turn off orientation lock in device settings.
Blocks
Workspace
Actions
Math
Functions
Variables
Actions
Math
Functions
Variables
Your browser is not supported. Please upgrade your browser to one of our supported browsers. You can try viewing the page, but expect functionality to be broken.
CS in Algebra curriculum and content is being deprecated. Within the next few months, this lab will no longer be available. Please check out Bootstrap: Algebra instead. Learn More.
Rotate your device.
Turn off orientation lock in device settings.
Here's our game from an earlier stage but most of the code is hidden. We've added a new function called score_points.
points
is added to player_score
.player_score
should increase each time Dog tags Cat with pie, and decrease each time that Cat tags Dog with a sandwich.Note: When you're done, click "Run" to play. When Dog scores 6 points, you will move on to the next puzzle.