Console Trivia Quiz Game
An interactive command-line trivia game in Dart that reads questions from a JSON file, tracks score across rounds, and gives immediate feedback. Learners practice file I/O, JSON decoding, loops, and user input handling in Dart.
- Estimate
- ~7h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
Dart SDK · dart:io
Project roadmap
- 01
Create the question bank
~1hWrite a JSON file containing trivia questions, multiple-choice options, correct answers, and categories.
- 02
Load and decode the data
~1.5hWrite a loader that reads the JSON file and decodes it into Dart model objects.
- 03
Build the game loop
~2hImplement the main loop that presents each question, reads console input, and checks the answer.
- 04
Track and display score
~1hKeep a running score counter and print a final summary at the end of the round.
- 05
Add filters
~1.5hLet the player choose a question category and difficulty level before starting.
Resources
- DocsDart Guides
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack