How jacob-horndahl-dev/diamond_fighters-quiz_battle works
Diamond Fighters is a console-based, multiplayer quiz game. Players choose a game from the menu, enter names and round count, answer category-based questions, and see ranked results; scores are also saved to and displayed from a high-score list. The game delegates question selection to a manager, which loads and shuffles questions through a JSON repository. Question types define answer presentation and checking. The README gives no further capability details; some links below rely on the SOURCE INDEX because only selected source excerpts were provided.
Main entry points: Game.cs Game rounds · JsonQuestionRepository.cs JSON question loader · Menu.cs Main menu · HighScoreManager.cs High-score manager
Components 16
Console entry
- Application startup
Diamond_Fighters-Quiz_Battle/Program.cs - Main menu
Diamond_Fighters-Quiz_Battle/Menu.cs
Quiz gameplay
- Game rounds
Diamond_Fighters-Quiz_Battle/Game.cs - Player state
Diamond_Fighters-Quiz_Battle/Player.cs - Score rules
Diamond_Fighters-Quiz_Battle/ScoreManager.cs - Question selection
Diamond_Fighters-Quiz_Battle/QuestionManager.cs
Questions and records
- Question model
Diamond_Fighters-Quiz_Battle/Question.cs - Multiple choice
Diamond_Fighters-Quiz_Battle/MultipleChoiceQuestion.cs - True/false
Diamond_Fighters-Quiz_Battle/TrueFalseQuestion.cs - Question repository
Diamond_Fighters-Quiz_Battle/IQuestionRepository.cs - JSON question loader
Diamond_Fighters-Quiz_Battle/JsonQuestionRepository.cs - Question data
Diamond_Fighters-Quiz_Battle/Resources/questions.json - High-score manager
Diamond_Fighters-Quiz_Battle/HighScoreManager.cs - High-score entry
Diamond_Fighters-Quiz_Battle/HighScoreEntry.cs - Score file storage
Other components
- Players
Connections 24
- Players → Main menu: chooses options
Diamond_Fighters-Quiz_Battle/Menu.cs - Application startup → Main menu: starts menu
Diamond_Fighters-Quiz_Battle/Program.cs - Application startup → High-score manager: creates manager
Diamond_Fighters-Quiz_Battle/Program.cs - Main menu → Game rounds: starts game
Diamond_Fighters-Quiz_Battle/Menu.cs - Main menu → High-score manager: shows scores
Diamond_Fighters-Quiz_Battle/Menu.cs - Main menu → Question selection: creates manager
Diamond_Fighters-Quiz_Battle/Menu.cs - Game rounds → Question selection: requests questions
Diamond_Fighters-Quiz_Battle/Game.cs - Game rounds → Player state: updates players
Diamond_Fighters-Quiz_Battle/Game.cs - Game rounds → Score rules: calculates scoring
Diamond_Fighters-Quiz_Battle/Game.cs - Game rounds → High-score manager: saves results
Diamond_Fighters-Quiz_Battle/Game.cs - Game rounds → Question model: checks questions
Diamond_Fighters-Quiz_Battle/Game.cs - Game rounds → Multiple choice: handles answers
Diamond_Fighters-Quiz_Battle/Game.cs - Game rounds → True/false: handles answers
Diamond_Fighters-Quiz_Battle/Game.cs - Question selection → Question repository: loads through
Diamond_Fighters-Quiz_Battle/QuestionManager.cs - Question selection → JSON question loader: selects implementation
Diamond_Fighters-Quiz_Battle/QuestionManager.cs - JSON question loader → Question data: reads JSON
Diamond_Fighters-Quiz_Battle/JsonQuestionRepository.cs - JSON question loader → Question model: creates questions
Diamond_Fighters-Quiz_Battle/JsonQuestionRepository.cs - JSON question loader → Multiple choice: creates type
Diamond_Fighters-Quiz_Battle/JsonQuestionRepository.cs - JSON question loader → True/false: creates type
Diamond_Fighters-Quiz_Battle/JsonQuestionRepository.cs - Multiple choice → Question model: inherits model
Diamond_Fighters-Quiz_Battle/MultipleChoiceQuestion.cs - True/false → Question model: inherits model
Diamond_Fighters-Quiz_Battle/TrueFalseQuestion.cs - Score rules → Player state: ranks players
Diamond_Fighters-Quiz_Battle/ScoreManager.cs - High-score manager → High-score entry: loads entries
Diamond_Fighters-Quiz_Battle/HighScoreManager.cs - High-score manager → Score file storage: reads and writes
Diamond_Fighters-Quiz_Battle/HighScoreManager.cs