Home
// Digital Technology - Year 9 & 10 //

AI GAME SHOW

Over the next 10 updates you will build your own trivia game show in JavaScript: a question bank, scoring, a countdown, shuffled rounds and a lifeline. Copilot writes your first questions, and you fact-check every single one. At Game Show Night you host your show for your table. You are the producer. You are the fact-checker. You are the coder.

🎮 Trivia Engine
✨ Copilot Writer
🔍 Fact-Checked
🏆 Game Show Night
Your Toolkit
🛠️
Show Studio
Built into this page, below the rubric: a JS tab for your questions and rules, a CSS tab for the look, and a live game show screen to play it. Nothing to install and no account needed.
🧾
The Question Bank
Your show is a list called questions. Each question has its text q, its options and the position of the right answer. Positions start at 0.
💾
Save Routine
End of every update: Save downloads your show as one .html file to Downloads. Start of every update: Open and choose that file. The Studio keeps a draft in this browser too, but your Downloads file is the safe copy.
📋
Copy Boxes
Each code box says which tab it goes in and where. Click Copy, click that spot in the Studio, press Ctrl+V, then Run. Then change it to fit your show.
🎤
Game Show Night
Your finished show is a single .html file that runs in any browser. On the night you host it on your own laptop for your table: you read the questions, they play.
✨
AI Co-Pilot
copilot.microsoft.com - your question writer. It drafts questions in the right format fast. You are the fact-checker: every answer gets checked against a real source before it goes in your show.
⚠ Copilot can sound certain and still be wrong. Log every mistake you catch in your Fact-Check Log.
// Primary Objective

Produce a trivia game show on a topic you choose, with a fact-checked question bank, scoring, a countdown, shuffled rounds and a lifeline, then host it for your table at Game Show Night.

Produce a show with a topic, a name, a host voice and a look that fits it
Code its rules in JavaScript with arrays, objects, functions, if / else and loops
Fact-check every question Copilot writes against a real source, and log what it got wrong
Host your show for your table, then reflect on when you can trust an AI answer
// Marking Key & Rubric
Criteria Practice Round
(0-1)
Contestant
(2-3)
Finalist
(4)
Champion
(5)
Score
Show Design No clear topic or look A name, an intro and a topic A clear topic, a host voice in the intro and end messages, and its own theme A show people want to play again, with every part fitting one idea / 5
Code Show only works with heavy teacher help Questions play using the Studio code Scoring, countdown, shuffled rounds, the 50:50 and an end message all work in your own show Your own changes or new rules, and you can explain every function you use / 5
Fact-Check Answers not checked Some answers checked, log started 15+ questions, every answer checked against a named source, Copilot's mistakes logged and fixed Checked twice from different sources, with facts that teach the player something / 5
Playtest & Host No testing, show not ready Played once, some fixes made Playtest log with fixes, show ready and hosted on the night Polished, fair show, hosted with energy, clear reflection / 5
Total / 20
Scroll sideways to see every column
Show Studio
// Edit, press Run, then play your show below

Run restarts your show. Players can click an answer or press 1 to 4. Save downloads one .html file (your whole show). Open loads it back. Play opens your show full screen in a new tab. Reset brings back the demo show - press it twice to confirm.

Update Log
Week 1
01
🎬 Meet the Show
▾
// UPDATE OBJECTIVEDemo show played and its code read. Your show's topic, name and players planned. First save in Downloads.
  • Scroll up to the Show Studio. The demo show, Brain Blast, is already running. Play it twice: once getting everything right, once getting some wrong
  • Now read the JS tab. showName is the name at the top, intro() is the title screen message, and questions is the question bank
  • Each question has three parts: q is the question, options is the list of choices, and answer is the position of the right one. Positions start at 0, so Mars, the second option, is answer: 1
  • Change one question to your own and press Run. That's the whole workflow: edit, Run, play
  • Pick your show's topic:
ScienceSpace, animals, the human body, inventions.
SportA sport, a team or the Olympics.
HistoryA time, a place or an event you find interesting.
Gaming & TechConsoles, inventors, how computers work.
AustraliaGeography, wildlife, places to visit.
Your Own IdeaAnything with facts you can check. Check it with your teacher first.
  • In your book, write your show's name, its topic, who will play it, and three questions you already know the answers to
  • Type your show's name in the file name box and click Save. Check the .html is in your Downloads
💡 HintPick a topic with answers you can look up. "Australian animals" has facts you can check on a museum website. "Best songs ever" is opinion, so there's no right answer to check.
🔍 Google Image Search"tv quiz show studio set lighting"
// ASK AI"Suggest 5 catchy names for a trivia game show about [your topic] for Year 10 students."
02
🎨 Show Identity
▾
// UPDATE OBJECTIVEYour show has its own name, an intro in a host voice and its own look in CSS. Three of the demo questions swapped for your own.
  • Open your .html from Downloads with Open (skip this if the Studio still shows your draft)
  • A string is text inside quote marks. showName holds one, and intro() returns one. If your text has an apostrophe in it, like You're, wrap it in double quotes
  • Swap in your own name and intro using the JS box below as a pattern. Write the intro like a TV host would say it
  • Give your show its own look: replace the CSS tab with the theme box, then change every colour. .opt is the answer buttons, .opt.right and .opt.wrong show after a click, .big is Start and Next
  • Replace three of the demo questions with three of your own. Run, play, then Save
// CSS tab - a new theme for your show (replace the whole tab, then change every colour)
body {
  background: #04223a;
  color: #e9f6ff;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

#top, h1, #timer {
  color: #4ff0c8;
}

h1 {
  text-shadow: 0 0 18px #4ff0c8;
  letter-spacing: 2px;
}

.opt {
  background: #0b3b5c;
  color: #e9f6ff;
  border-color: #145c85;
}

.opt:hover {
  border-color: #4ff0c8;
}

.opt.right {
  background: #138a5e;
}

.opt.wrong {
  background: #b3263e;
}

.big {
  background: #4ff0c8;
  color: #04223a;
}

.life {
  background: transparent;
  color: #4ff0c8;
  border: 2px solid #4ff0c8;
}
// JS tab - a name and intro with personality (replace the top two parts)
const showName = 'Deep Sea Showdown';

function intro() {
  return 'Dive in! Ten questions from the bottom of the ocean. Can you make it back to the surface?';
}
💡 HintThe whole show vanished and the status line shows a red error? Check every string starts and ends with the same kind of quote mark. One missing quote breaks everything after it.
// ASK AI"Write 3 short intros a TV game show host might say for a quiz called [your show name], each under 25 words."
// LEVEL UPMatch the A B C D circles to your theme. Add .opt b { background: #4ff0c8; color: #04223a; } to the bottom of your CSS tab, then change the colours to yours.
Week 2
03
🧾 Question Bank
▾
// UPDATE OBJECTIVE10 questions on your topic, drafted with Copilot and every answer fact-checked. Fact-Check Log started. Show .html and log submitted.
  • questions is an array: a list in square brackets. Each question inside it is an object: parts with names, inside curly brackets { }
  • Ask Copilot to draft 10 questions on your topic using the Ask AI prompt below. It will write them in the same format as your code
  • Paste them inside the [ ] of your questions list, replacing the demo questions. Every } needs a comma after it, except the last one
  • Now fact-check every one. Look up each answer on a real source: a museum, a government or university site, an encyclopedia. Copilot is not a source
  • Check the answer number too. Count the options from 0 and make sure it points at the right one
  • Fix wrong answers or delete the question. Fill in your Fact-Check Log, then Save and submit your .html and the log
🔍 Fact-Check Log (a table in Word or your book)
QuestionThe question, short
Copilot saidThe answer Copilot gave
SourceThe website or book you checked, by name
VerdictCorrect, Fixed (what was wrong) or Removed (why)
// JS tab - a blank question to fill in (paste inside the [ ], after the last },)
  {
    q: 'Your question here?',
    options: ['Option 0', 'Option 1', 'Option 2', 'Option 3'],
    answer: 0
  },
💡 HintCopilot's most common mistakes: an answer number that points at the wrong option, two options that are both right, and "facts" that sound true but aren't. Check all three.
// ASK AI"Write 10 multiple-choice trivia questions about [your topic] for Year 10 students as a JavaScript array. Each question is an object with q (the question), options (4 choices) and answer (the position of the right option, counting from 0)."
📤 Submit via ConnectYour show .html from Downloads and your Fact-Check Log
// LEVEL UPAdd a true or false question. Its options are just options: ['True', 'False'], with answer: 0 for true or answer: 1 for false. The show handles any number of options from 2 up.
04
💯 Scoring
▾
// UPDATE OBJECTIVEpointsFor() decides the score. Right answers score points that fit your show, and the score pops on screen.
  • Without a scoring rule, every right answer is worth 1 point. pointsFor() lets you decide
  • The show calls pointsFor(correct, secondsLeft, streak) after every answer. correct is true or false, and whatever number you return is added to the score
  • Add the box at the bottom of your JS tab, Run, and play. Each right answer is now 100
  • Change 100 to fit your show: 10, 250, 1000. Big numbers feel exciting on screen
  • Keep adding to your question bank. Every new question goes in your Fact-Check Log first. Save
// JS tab - scoring (add at the bottom of the JS tab)
// Runs after every answer. Whatever it returns is added to the score.
// correct is true or false. streak is how many right in a row.
function pointsFor(correct, secondsLeft, streak) {
  if (correct) {
    return 100;
  } else {
    return 0;
  }
}
💡 HintEvery path through pointsFor needs a return. If the show warns that pointsFor() gave back nothing, one of your if / else paths has no return.
// ASK AI"Explain what a function parameter is, using a game show scoring function with the parameters correct, secondsLeft and streak as the example."
// LEVEL UPA streak bonus. Make the first line inside pointsFor if (correct && streak >= 3) { return 200; }. From the third right answer in a row, every right answer is worth double, until a wrong answer resets the streak.
Week 3
05
⏱️ Countdown
▾
// UPDATE OBJECTIVEEvery question has a countdown. Running out of time counts as wrong, and faster right answers score more.
  • Add timeLimit at the top of your JS tab. A bar counts down above each question. Hit 0 and the show counts it as wrong
  • secondsLeft is how many seconds were left when the player clicked. Replace your pointsFor with the time bonus box
  • Work it out: with 15 seconds and an answer after 5 seconds, 100 + 10 * 10 is 200 points
  • Pick a time limit that fits your questions. Long questions need longer to read. Play it three times and adjust
  • Save
// JS tab - a countdown (add at the top of the JS tab)
// Seconds for each question. Run out and it counts as wrong.
const timeLimit = 15;
// JS tab - a time bonus (replace your pointsFor function)
function pointsFor(correct, secondsLeft, streak) {
  if (correct) {
    return 100 + secondsLeft * 10;
  } else {
    return 0;
  }
}
💡 HinttimeLimit must be a number with no quote marks: 15, not '15'. With quotes it's a string, and the show ignores it.
// ASK AI"In a quiz game, is it fairer to give a time bonus or a fixed score for each right answer? Give one argument for each."
// LEVEL UPMake wrong answers cost points. In pointsFor, change return 0; to return -50;. Now guessing is risky. Ask a classmate to play it: is it fairer, or just meaner?
06
🔀 Shuffle & Rounds
▾
// UPDATE OBJECTIVEQuestions shuffle every game. Bank grown to 15 or more fact-checked questions, and each game plays 10 of them. Show .html submitted.
  • Same order every game means players learn the order, not the facts. prepare(list) runs at the start of every game, and whatever list it returns is that game's questions
  • The Fisher-Yates shuffle goes from the last question to the first, swapping each one with a random question at or before it. Every order is equally likely
  • Add the box at the bottom of your JS tab, Run, and press Play again a few times. The first question changes
  • Rounds: change return list; to return list.slice(0, 10);. slice(0, 10) keeps the first 10 of the shuffled list, so every game is a different 10
  • Grow your bank to 15 or more, each one in your Fact-Check Log. Save and submit your .html
// JS tab - shuffle (add at the bottom of the JS tab)
// Runs at the start of every game. Whatever list it returns is the game.
function prepare(list) {
  // Fisher-Yates shuffle: swap each question with a random one
  for (let i = list.length - 1; i > 0; i--) {
    const j = Math.floor(Math.random() * (i + 1));
    const temp = list[i];
    list[i] = list[j];
    list[j] = temp;
  }
  return list;
}
💡 Hintprepare must end with return. Without it the show gets nothing back, so it has no questions to ask.
// ASK AI"Explain the Fisher-Yates shuffle step by step using a list of 4 playing cards."
📤 Submit via ConnectYour show .html with shuffled rounds working, and your updated Fact-Check Log
// LEVEL UPA speed round. Change the end of prepare to return list.slice(0, 3); and timeLimit to 5. Three questions, five seconds each. Change them back when you've tried it.
Week 4
07
🛟 Lifelines
▾
// UPDATE OBJECTIVEA 50:50 lifeline that hides two wrong options, once per game. Tested on questions with the answer in different positions.
  • When fiftyFifty exists, a 50:50 button appears under the options. Players can use it once per game
  • The show gives your function the current question. It returns the positions of two wrong options, and the show hides them
  • The for loop checks every position. !== means "is not", so every position that isn't the answer goes into the wrong list. slice(0, 2) keeps the first two
  • Add the box, Run, and use the lifeline on a few different questions. The right answer must never vanish (the show blocks it if your code tries)
  • Save
// JS tab - the 50:50 lifeline (add at the bottom of the JS tab)
// Return the positions of two WRONG options to hide.
// Players can use it once per game.
function fiftyFifty(question) {
  const wrong = [];
  for (let i = 0; i < question.options.length; i++) {
    if (i !== question.answer) {
      wrong.push(i);
    }
  }
  return wrong.slice(0, 2);
}
💡 HintPlay it a few times and watch. It always hides the first two wrong options, so a sharp player can sometimes guess which ones it will hide. The Level Up fixes that.
// ASK AI"What does the !== operator mean in JavaScript? Give 3 short examples with true or false results."
// LEVEL UPRandom lifeline. Just before return wrong.slice(0, 2); add wrong.sort(() => Math.random() - 0.5);. That mixes the wrong list, so the two hidden options change every time.
08
🔍 Check & Playtest
▾
// UPDATE OBJECTIVEFive of your answers checked by a classmate from a different source. Facts added to five questions. Two players have playtested, and the fixes are made.
  • Second check: swap Fact-Check Logs with a partner. They check five of your answers using a different source to yours and write it in your log
  • Add a fact to at least five questions. It shows after the player answers, so they learn something either way. Write it from your source, in your own words
  • Playtest: click Play, give your laptop to a classmate and watch without helping. Log every question that was too easy, too hard, confusing, or too short on time
  • Fix the biggest problems, playtest with a second player, then Save
// JS tab - a question with a fact (add fact: after answer, and a comma after answer)
  {
    q: 'Which planet is known as the Red Planet?',
    options: ['Venus', 'Mars', 'Jupiter', 'Saturn'],
    answer: 1,
    fact: 'Mars looks red because its dust is full of iron oxide - rust.'
  },
💡 HintIf nobody gets a question right, it may be unfair rather than hard. Check the wording, check the answer number, then check the fact again.
// ASK AI"Here are 5 of my quiz questions: [paste them]. Which ones might be confusing or have more than one right answer? Explain why."
// LEVEL UPCredit your source. Put it at the end of each fact in brackets, like fact: 'Mars looks red because its dust is full of iron oxide - rust. (NASA)'.
Week 5
09
🏆 Final Polish
▾
// UPDATE OBJECTIVEShow finished: an end message in your host voice, a polished look, every question checked. Final .html and Fact-Check Log submitted.
  • finalMessage(correctCount, total, score) decides the message on the end screen. It uses if / else if to pick one for great, okay and low scores
  • Add the box, then rewrite all three messages in your host voice
  • total / 2 is half the questions, so correctCount >= total / 2 means "at least half right"
  • Polish: readable colours, an intro that says what the show is about, a fair time limit
  • Run the final check below, then Save. Open the saved .html straight from Downloads (double-click it) to check it works outside the Studio. Submit it with your Fact-Check Log
// JS tab - the end screen message (add at the bottom of the JS tab)
// The message on the end screen
function finalMessage(correctCount, total, score) {
  if (correctCount === total) {
    return 'PERFECT GAME! You are the champion!';
  } else if (correctCount >= total / 2) {
    return 'Great effort! ' + score + ' points.';
  } else {
    return 'Better luck next time! Study up and try again.';
  }
}
✅ Final Show Check
IdentityYour name, intro, theme and end messages, all in one voice
Question bank15 or more questions, every answer in your Fact-Check Log with a source
ScoringPoints with a time bonus and a countdown that fits
RoundsShuffled, 10 questions a game
Lifeline50:50 hides two wrong options, once per game
💡 HintMake sure your saved file is your newest version. Save, then open the .html from Downloads and play it. If something is missing, you saved too early.
// ASK AI"Write 3 end-of-game messages for a quiz show host called [your show name]: one for a perfect score, one for half right, one for a low score."
📤 Submit via ConnectYour final show .html and Fact-Check Log
10
🎤 Game Show Night
▾
// UPDATE OBJECTIVEYour show hosted for your table. Every show at your table played. Champions crowned. Final reflection submitted.
  • Sit in your table group. Everyone opens their final .html from Downloads in the browser (not the Studio), and has scrap paper and a pen
  • Hosting turn (about 5 minutes): introduce your show in one line, turn your laptop so the table can see it, and read each question out loud
  • Players write their letter, A to D, before you click. Click the answer most of the table chose, then everyone who wrote the right letter scores a point on your paper scoreboard
  • At the end, crown your show's champion, then pass hosting to the left until every show at the table has been played
  • Class awards, voted at the end: Best Show, Best Host, Toughest Questions and Best Design
  • Write your final reflection: the feature you're proudest of, the worst mistake Copilot made and how you caught it, and when you would and wouldn't trust an AI answer. Submit it through Connect
💡 HintPlayers need time to write before you click. If your timeLimit is under 20 seconds, raise it for the night and Save a copy for hosting.
// ASK AI"Help me write a short reflection about building a quiz game show: a feature I'm proud of, a mistake an AI made in my questions, and when I would trust an AI's answer."
📤 Submit via ConnectFinal reflection
🎤

Game Show Night Awaits

After 10 updates the lights go on. Every student hosts their show for their table, every show gets played, and the class crowns its champions.

🎤 Every show hosted
🔍 Every answer checked
🏆 Champions crowned

Play the demo show, then plan your own // Update 01

SYSTEM ONLINE // YEAR 9-10 DIGITAL TECHNOLOGY AI GAME SHOW // 10 UPDATES