Welcome to the Math Adventure Game! This console-based game challenges your math skills with problems of increasing difficulty as you progress through levels. Test your knowledge in basic arithmetic, linear algebra, and calculus.
This project is my final submission for the Code in Place course offered by Stanford University. Code in Place is an online course designed to teach Python programming to beginners.
- Multiple difficulty levels: Choose between Easy, Medium, and Hard.
- Varied problem types: Encounter different types of math problems, including basic arithmetic, matrix operations, determinants, and calculus problems.
- Scoring system: Earn points for each correct answer and track your progress.
- Level progression: Advance through levels as you solve problems correctly.
- Clone the repository:
git clone https://github.com/GGomezMorales/code_in_place_final_project_2024.git cd code_in_place_final_project_2024
- Install required packages:
Ensure you have Python installed. This game also requires
numpy
for matrix operations. You can install it usingpip
:pip install numpy
- Run the game:
python3 main.py
- Select a difficulty level:
Select difficulty level: 1. Easy 2. Medium 3. Hard
- Solve the problems:
- Problems will be presented to you based on the selected difficulty and current level.
- Type your answer and press Enter.
- Receive feedback on whether your answer was correct and your updated score.
- Continue playing:
- After each problem, choose whether to continue playing or end the game.
- Your final score will be displayed when you choose to stop playing.
Welcome to the Math Adventure Game! Let's get started.
Select difficulty level:
1. Easy
2. Medium
3. Hard
Enter the number corresponding to the difficulty level: 2
Solve this problem: 15 + 7
Your answer: 22
Correct answer! You have earned 10 points
You are now on level 2 with a score of 10
Do you want to continue playing? (yes/no): yes
Enjoy the Math Adventure Game and improve your math skills while having fun!