DartbeginnercliAI generated

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

  1. 01

    Create the question bank

    ~1h

    Write a JSON file containing trivia questions, multiple-choice options, correct answers, and categories.

  2. 02

    Load and decode the data

    ~1.5h

    Write a loader that reads the JSON file and decodes it into Dart model objects.

  3. 03

    Build the game loop

    ~2h

    Implement the main loop that presents each question, reads console input, and checks the answer.

  4. 04

    Track and display score

    ~1h

    Keep a running score counter and print a final summary at the end of the round.

  5. 05

    Add filters

    ~1.5h

    Let the player choose a question category and difficulty level before starting.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~7h · 5 steps

Tech stack

Dart SDKdart:io