-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMain.py
More file actions
29 lines (24 loc) · 739 Bytes
/
Copy pathMain.py
File metadata and controls
29 lines (24 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# import file view.py , data.py
from App.View.View import ModeView, ShowGame
from App.Data.Data import DataView
print('\nKuis Matematika (v2.0)')
print('@dharma_situmorang')
# Player's Name
# You can directly give your name if you don't like it use input
playerName = input('\nNama Kamu >> ')
# Base Mode , history score
modeGame = 0
MyHistoryScore = []
while modeGame != 9:
ModeView(DataView())
try:
# user choice the game mode
modeGame = int(input('\nMode >> '))
ShowGame({
'playerName': playerName,
'history': MyHistoryScore,
'mode': modeGame
})
except ValueError:
print('Pilih hanya kategori diatas saja\n')
print('\nGood Bye!!! :)')