Consonant or Vowel?

Uses

LED display, buttons

Description

In this challenge you will make a reaction game called Consonant or Vowel?.

../../_images/consonant-or-vowel.png

The micro:bit must show the player a letter which is either a consonant or a vowel. The player must press button A if it is a consonant and button B if it is a vowel. They must choose an answer in 1 second. If the player presses the wrong button, the micro:bit displays a suitable image or message and the game ends. If they press the correct button, the micro:bit displays a message or image and the player gets a point and can play again.

Basic Game

  1. Display a welcome messge.
  2. Create loop for the game which repeats every second.
  3. Create a list of consonants in your program and a list of vowels. Hint: vowels = ['A', 'E', 'I', 'O', 'U'].
  4. Randomly select either consonants or vowels. Hint: use random.randint(0,2). Then randomly select a letter from the list. Display the letter.
  5. Test whether the user has pressed the correct button. If the user has pressed the correct button, display a suitable image or message.
  6. If the user has pressed the wrong button, finish the game.
  7. If the player’s answer was correct, add 1 to the player’s score.
  8. At the end of the game, display the player’s score.
  9. You also have an option to make the game more difficult. If the player succeeds in each round, make the time interval for the next round shorter.