Testing against criteria
Answers are for parents and teachers.
1
Write four testable criteria for a game of your own about catching, collecting or racing.
Answers vary. Each criterion should be checked with a yes or no, for example ‘The runner moves 5 steps for each key press’.
2
Play a board game or a playground game with a friend. Write three criteria for it and tick yes or no after you play.
Answers vary. Check that each criterion is clear, for example ‘Each player throws the die once per turn’.
3
Sort into testable and not testable: (a) The score is 0 at the start. (b) The game is awesome. (c) The ball bounces off the wall. (d) The colours are pretty.
(a) and (c) are testable. (b) and (d) are opinions.
4
Write the algorithm in numbered steps for a Squirrel sprite. When the up arrow key is pressed it moves 15 steps. If it touches the Acorn it says ‘Got it!’ for 1 second.
1 Start when the up arrow key is pressed. 2 Move 15 steps. 3 If touching Acorn, then say ‘Got it!’ for 1 second. 4 End.
5
(if you have a computer or tablet) Build the Basket and Apple sprites of ‘Catch the apple’ in Scratch. Test the six criteria and write yes or no for each.
Without the fix, criterion 5 should fail. After adding the second if block, all six criteria should pass.