Basic math problem solving game made out of PyQt5
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.
- PyQt5 >= 5.15
pip3 install git+https://github.com/yjg30737/pyqt-math-game.git --upgrade
- pyqt-style-setter - for its dark-gray style
- pyqt-custom-titlebar-setter - for its customized title bar (not OS default title bar)
- pyqt-toast - for show the right/wrong message
- pymeg - for generate the random math problem
- pyqt-responsive-label - for responsive label accordance with window size
- pyqt-rounded-corners-lineedit - self-explanatory, stylish rounded corners line edit
Code Sample
from pyqt_math_game import MathGameApp
if __name__ == "__main__":
import sys
app = MathGameApp(sys.argv)
app.exec_()