5. Quiz Show

Create a simple Quiz Show style game using your Circuit Playground Express buttons A and B along with App Lab code written in the Code.org Maker app. Running the program looks like the following:

The starter code is given here. Remember that to use the Circuit Playground Express you must do your development work within the Code.org Maker App. In case you want to use them, here are the Code.org colors:

Green: #53aab9 Purple: #73669c Grey: #c7cacd Orange: #f0a73c Red: #b8271a

For your convenience here is a screen shot of the interface:

Quiz Show app

The game begins after the Start button is pressed when a prompt is given on the screen for two players to guess. Each player uses one of the Circuit Playground Express (CPX) buttons (Button A for left and Button B for right) to indicate they know the answer. When a player presses their CPX button, their corresponding "<" or ">" button background gets highlighted in orange. The player who is the first to click their button then has 5 seconds to say the right answer out loud. After 5 seconds the correct answer is displayed on the screen. The two players then decide whether or not the answer was correct, and one of the players gets a point by selecting the "<" button to move the score slider to the left when the left player gets a point, or by selecting the ">" button to move the score slider to the right when the right player gets a point. Selecting either "<" or ">" also displays the next question as the game continues. No special action is required if the slider "thumb" reaches either far end of the slider.

Turning it in:

Get the link to your solution using the Share near the top-left of that page:

Share Link

Turn in your App Lab program by posting the link to it in the essays google form, calling the essay topic Quiz Show.

Also add screen shots of it and a link to it on your online portfolio.

Requirements & Rubric:

  1. (5 points) Start button clears the message near the bottom and displays a random question
  2. (5 points) Pressing the CPX A (left) and B (right) buttons set their corresponding score button background ("<" and ">" buttons) to orange.
  3. (5 points) Pressing the CPX A (left) and B (right) buttons displays the question answer after 5 seconds.
  4. (5 points) Pressing the on-screen "<" and ">" score buttons move the slider one step in the appropriate direction and then the next randomly selected question is displayed
  5. Up to 5 points of extra credit will be given to exceptional projects that only allow one (and not both) "<" / ">" buttons to be highlighted during a single question, and/or store the questions and answers in an App Lab dataset rather than in a list.