Giter Club home page Giter Club logo

code_in_place_final_project's Introduction

Math Adventure Game

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.

About

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.

Features

  • 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.

Installation

  1. Clone the repository:
    git clone https://github.com/GGomezMorales/code_in_place_final_project_2024.git
    cd code_in_place_final_project_2024
    
  2. Install required packages:

    Ensure you have Python installed. This game also requires numpy for matrix operations. You can install it using pip:

    pip install numpy
    

How to play

  1. Run the game:
    python3 main.py
    
  2. Select a difficulty level:
    Select difficulty level:
    1. Easy
    2. Medium
    3. Hard
    
  3. 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.
  4. 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.

Example

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!

code_in_place_final_project's People

Contributors

ggomezmorales avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.