Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battle of Books Trainer

A C# console application to help kids train for Battle of Books competitions through interactive quizzes.

Features

  • Book Library: Manage a collection of books with questions
  • Random Quiz: Get random questions from all available books
  • Score Tracking: Track correct/incorrect answers and see your percentage
  • Interactive Menu: Easy-to-use console interface
  • Add Books & Questions: Dynamically add new books and questions
  • Sample Data: Pre-loaded with questions from popular children's books

Pre-loaded Books

The application comes with sample questions from:

  • Harry Potter and the Sorcerer's Stone by J.K. Rowling
  • Charlotte's Web by E.B. White
  • Wonder by R.J. Palacio
  • The Lightning Thief by Rick Riordan

How to Run

  1. Make sure you have .NET 8.0 SDK installed
  2. Navigate to the project directory
  3. Run the following commands:
dotnet build
dotnet run

Usage

When you run the application, you'll see a menu with options to:

  1. View Book List: See all available books and question counts
  2. Start Quiz: Take a quiz with a specified number of questions
  3. Add New Book: Add a new book to the library
  4. Add Question to Book: Add questions to existing books
  5. Exit: Close the application

Project Structure

BattleOfBooks/
├── Models/
│   ├── Book.cs           # Book model with title, author, and questions
│   └── Question.cs       # Question model with text and answer
├── Services/
│   └── QuizService.cs    # Quiz logic and scoring
├── Program.cs            # Main program with user interface
└── BattleOfBooks.csproj  # Project file

Extending the Application

You can easily extend this application by:

  • Adding more books and questions through the menu
  • Implementing question difficulty levels
  • Adding timer functionality for timed quizzes
  • Saving/loading books from a file or database
  • Creating multiplayer modes for competitive play

Requirements

  • .NET 8.0 SDK or later
  • Windows, macOS, or Linux

License

Free to use for educational purposes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages