Skip to content

Commit

Permalink
saper
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Wazovsky committed May 25, 2021
1 parent e2042c9 commit 1b2140e
Show file tree
Hide file tree
Showing 35 changed files with 6,965 additions and 153 deletions.
51 changes: 51 additions & 0 deletions Macaft.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
arithmetic_problem.cpp \
controller.cpp \
game.cpp \
gamewindow.cpp \
main.cpp \
mainwindow.cpp \
resultwindow.cpp \
second_main.cpp \
settingswindow.cpp \
uml.cpp \
view.cpp \
windowwithgame.cpp

HEADERS += \
arithmetic_problem.h \
controller.h \
game.h \
game_fwd.h \
gamewindow.h \
global_struct_of_game.h \
json.hpp \
mainwindow.h \
resultwindow.h \
second_main.h \
settingswindow.h \
uml.h \
view.h \
windowwithgame.h

FORMS += \
GameWindow.ui \
mainwindow.ui \
resultwindow.ui \
settingswindow.ui \
windowwithgame.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
1,882 changes: 1,882 additions & 0 deletions Macaft.pro.user

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions PROBLEM_FOR_MINI_GAMES/task_easy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"number" : 15,
"0" : {
"problem": "65 + 5",
"answer": 70
},
"1" : {
"problem": "2 + 2",
"answer": 4
},
"2" : {
"problem": "7 * 4",
"answer": 28
},
"3" : {
"problem": "8 - 2",
"answer": 6
},
"4" : {
"problem": "32 - 10",
"answer": 22
},
"5" : {
"problem": "2 * 3",
"answer": 6
},
"6" : {
"problem": "9 / 3",
"answer": 3
},
"7" : {
"problem": "14 / 7",
"answer": 2
},
"8" : {
"problem": "245 - 41",
"answer": 204
},
"9" : {
"problem": "5 * 6",
"answer": 30
},
"10" : {
"problem": "7 - 8",
"answer": -1
},
"11" : {
"problem": "3 * 4",
"answer": 12
},
"12" : {
"problem": "5 + 5 + 5",
"answer": 15
},
"13" : {
"problem": "45 / 5",
"answer": 9
},
"14" : {
"problem": "34 + 4",
"answer": 38
}
}
23 changes: 23 additions & 0 deletions PROBLEM_FOR_MINI_GAMES/task_hard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"number" : 5,
"0": {
"problem": "11 * 3 - (25 / 5) * 2",
"answer": 23
},
"1": {
"problem": "(85 - 6) + 3 - 60 / 2",
"answer": 52
},
"2": {
"problem": "88 / 2 + 6 - 15 / 5",
"answer": 47
},
"3": {
"problem": "22 + (85 - 88) * 2",
"answer": 16
},
"4": {
"problem": "(55 + 5 - (32 + 1)) / 3",
"answer": 9
}
}
43 changes: 43 additions & 0 deletions PROBLEM_FOR_MINI_GAMES/task_normal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"number" : 10,
"0": {
"problem": "55 + 5 - (45 + 5)",
"answer": 10
},
"1": {
"problem": "4 * (3 + 4)",
"answer": 28
},
"2": {
"problem": "9 - (30 / 5)",
"answer": 3
},
"3": {
"problem": "(17 - 3) + (7 - 5)",
"answer": 16
},
"4": {
"problem": "(13 - 4) / 3",
"answer": 3
},
"5": {
"problem": "45 / 5 - 4",
"answer": 5
},
"6": {
"problem": "6 * 7 - 2",
"answer": 40
},
"7": {
"problem": "90 - 40 + 5 - (5 - 4)",
"answer": 54
},
"8": {
"problem": "32 - 5 + 3",
"answer": 30
},
"9": {
"problem": "(76 + 4) / 4",
"answer": 20
}
}
Loading

0 comments on commit 1b2140e

Please sign in to comment.