Quiz - Løsningseksempel - Delopgave 1
Tilret så programmet har en gameState (ligesom vi havde i HeroMan og GrandPrix spillene). Spillet skal til at starte med have to tilstande QUIZ-QUESTIONS og QUIZ-FINISHED-SCREEN. Når Quiz’en er færdig kan du bare skrive at quizen er færdig uden at lave statistik på hvor mange spørgsmål der er svaret rigtig på.
Sådan kan koden se ud: https://editor.p5js.org/JensValdez/sketches/AvLZ0_BjO
Quiz - Solution Example - Subtask 1
Modify the program to have a gameState (like we had in the HeroMan and GrandPrix games). Initially, the game should have two states: QUIZ-QUESTIONS and QUIZ-FINISHED-SCREEN. When the quiz is finished, you can just write that the quiz is done without providing statistics on how many questions were answered correctly.
A possible solution in code:https://editor.p5js.org/JensValdez/sketches/AvLZ0_BjO