1/10
Vocabulary flashcards for AP CSP Create Task review.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Pressing the space bar
The input that starts the game and triggers diamond movement.
User Control
Using the arrow keys to move the character around the screen.
Forever Loop Function
It checks if the character is touching diamonds and updates the score and the list of collected diamonds.
'Check for win(Current Score)' Custom Block
It checks if the score is 800 or more and shows a win message.
Two Calls to Custom Procedure 'Check for win'
Check for win(200) does nothing; Check for win(850) shows a win message.
List 'Diamonds Collected' Track
Each collected diamond is added to the list for record-keeping.
How to Check if All Items in List Are Valid
Loop through each item and call checkValidity. If any return false, the list is not valid.
Intended Users of the Program
Students and young players who enjoy simple, interactive games.
Condition 'Score ≥ 800' is False
The game continues running and no win message is shown.
Different Values to 'Check for win' Produce Same Result
Yes, any value ≥ 800 like 820 or 1000 will show the win message.
Parameter 'Current Score' Helps Manage Complexity
It allows the block to work with any score without being tied to a specific variable.