An open API service indexing awesome lists of open source software.

https://github.com/yjg30737/pyqt-math-game

Basic math problem solving game made out of PyQt5
https://github.com/yjg30737/pyqt-math-game

math-game math-quiz pyqt pyqt-examples pyqt-gui pyqt-tutorial pyqt5 pyqt5-desktop-application pyqt5-examples pyqt5-gui python python3 python37 qt qt5

Last synced: 3 months ago
JSON representation

Basic math problem solving game made out of PyQt5

Awesome Lists containing this project

README

        

# pyqt-math-game
Basic math problem solving game made out of PyQt5

## Detailed Description

![image](https://user-images.githubusercontent.com/55078043/164683116-75f2dada-233f-42a8-ad62-dbc234f9b7f4.png)

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
* 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

## Example
Code Sample
```python
from pyqt_math_game import MathGameApp

if __name__ == "__main__":
import sys

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