Practical List Uses — Quiz Questions and High Scores
Example 1: Quiz Question Bank
- Create two lists: Questions and Answers.
- Add questions to Questions list: add (What is 2+2?) to Questions.
- Add answers to Answers list: add (4) to Answers.
- Use a variable CurrentQ as the index.
- ask (item (CurrentQ) of Questions) and wait → if answer = item (CurrentQ) of Answers then → say “Correct!”
Example 2: High Score List
At game over: add (Score) to (High Scores). Show the list on Stage so players can see all past scores.