Skip to content

Repository files navigation

ML Interview Quiz Game

A Python-based quiz game designed to help users practice machine learning interview questions in a fun, interactive way using Pygame.


Table of Contents


About

The ML Interview Quiz Game is a multiple-level quiz game where players answer questions about machine learning topics. The game tracks your score and health, provides immediate feedback, and progresses through multiple levels of different topics.

The game uses Pygame for graphics, interactive buttons, and smooth animations.


Features

  • Multiple levels with unique questions
  • Interactive buttons
  • Health bar to track performance
  • Score tracking per session
  • Level transition animations and feedback messages
  • Game over screen with restart option

Installation

  1. Clone the repository:
git clone git@github.com:AlexanderDsouza/MLGame.git
cd MLGame
  1. Create a virtual environment (optional but recommended):

python -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows

  1. Install required packages:
pip install pygame
  1. Add quiz data and images:

Make sure you have a quiz_data.json file containing quiz questions. Add level images as level1.png, level2.png, etc., in the project folder.

Usage

Run the game:

python main.py

The game starts at Level 1.

Answer questions by clicking on buttons or pressing 1–4 on your keyboard.

Feedback is shown immediately after each answer.

Health decreases on correct answers and increases on wrong answers in a fun twist!

Progress through levels until all questions are answered or the game ends.

Screenshot

Gameplay Screenshot

License

This project is open-source and free to use for personal or educational purposes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages