Skip to content

yjg30737/pyqt-math-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt-math-game

Basic math problem solving game made out of PyQt5

Detailed Description

image

This app generates a lot of different math problems with its AI(by pymeg, check "Included Packages" below).

Math problem is pretty basic(plus and minus only).

User can solve this problem with writing the answer in LINEEDIT and press return(enter) key or click SUBMIT button.

If submitted answer is right, right message will pop up, if it is wrong, wrong message will pop up.

If problem is so hard to solve than user can change the problem with clicking TRY OTHER.

Took about 40 minutes to make this.

Requirements

  • PyQt5 >= 5.15

Setup

pip3 install git+https://github.com/yjg30737/pyqt-math-game.git --upgrade

Included Packages

Example

Code Sample

from pyqt_math_game import MathGameApp

if __name__ == "__main__":
    import sys

    app = MathGameApp(sys.argv)
    app.exec_()