{"id":20383879,"url":"https://github.com/emansarahafi/quizgame","last_synced_at":"2026-06-09T05:01:54.098Z","repository":{"id":210530518,"uuid":"726791626","full_name":"emansarahafi/QuizGame","owner":"emansarahafi","description":"A quiz game completed in C++.","archived":false,"fork":false,"pushed_at":"2025-12-05T21:15:41.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T14:32:56.881Z","etag":null,"topics":["cpp","quiz-game"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emansarahafi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-03T12:19:06.000Z","updated_at":"2025-12-05T21:15:45.000Z","dependencies_parsed_at":"2023-12-03T13:42:06.920Z","dependency_job_id":null,"html_url":"https://github.com/emansarahafi/QuizGame","commit_stats":null,"previous_names":["emansarahafi/quizgame"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emansarahafi/QuizGame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emansarahafi%2FQuizGame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emansarahafi%2FQuizGame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emansarahafi%2FQuizGame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emansarahafi%2FQuizGame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emansarahafi","download_url":"https://codeload.github.com/emansarahafi/QuizGame/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emansarahafi%2FQuizGame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","quiz-game"],"created_at":"2024-11-15T02:24:54.629Z","updated_at":"2026-06-09T05:01:54.084Z","avatar_url":"https://github.com/emansarahafi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geek O Pedia - Quiz Game\n\nA C++ console-based trivia quiz game that tests your knowledge across three different subjects: Math, Physics, and Chemistry.\n\n## Overview\n\nGeek O Pedia is an interactive quiz game where players answer 10 questions from their chosen subject category. The game features a scoring system, top players leaderboard, and a special discount code reward for winners.\n\n## Features\n\n- **Three Subject Categories:**\n  - **Math**: Multiple choice questions covering algebra, arithmetic, and basic math concepts\n  - **Physics**: True/False questions about fundamental physics principles\n  - **Chemistry**: Multiple choice questions about elements, compounds, and chemical properties\n\n- **Scoring System:**\n  - 10 questions per quiz\n  - 10 points per correct answer\n  - Maximum score: 100 points\n  - Passing score: 70 points or higher\n\n- **Game Features:**\n  - Player name registration\n  - Main menu with multiple options\n  - Top 3 players leaderboard (persistent storage)\n  - Victory ASCII art display for winners\n  - Random discount code generation for winners\n  - Instructions/How to Play guide\n\n## Menu Options\n\n1. **Play** - Start a new quiz game\n2. **How to Play** - View game instructions\n3. **Top Scores** - Display the top 3 players and their scores\n4. **Quit** - Exit the game\n\n## How to Compile and Run\n\n### Compilation\n\n```bash\ng++ finalproject.cpp -o quizgame\n```\n\n### Run\n\n```bash\n./quizgame\n```\n\n## How to Play\n\n1. Enter your name when prompted\n2. Select an option from the main menu\n3. Choose your subject (Math, Physics, or Chemistry)\n4. Answer all 10 questions by selecting the appropriate letter choice\n5. View your final score\n6. If you score 70 or above, you win and receive a special discount code!\n\n## File Structure\n\n- `finalproject.cpp` - Main game source code\n- `topList.txt` - Stores top 3 players' names and scores (auto-generated)\n\n## Requirements\n\n- C++ compiler (g++ recommended)\n- Standard C++ libraries\n\n## Notes\n\n- The leaderboard persists between game sessions via the `topList.txt` file\n- Winners receive a randomly generated discount code (format: 3 letters + 4 digits)\n- The game supports case-insensitive answer input\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femansarahafi%2Fquizgame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femansarahafi%2Fquizgame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femansarahafi%2Fquizgame/lists"}