-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbase.py
More file actions
36 lines (35 loc) · 861 Bytes
/
base.py
File metadata and controls
36 lines (35 loc) · 861 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
30
31
32
33
34
35
36
import os
import time
import diceroller
import guess
import hangman
import currencyconvertor
import passwordgenerator
import tictactoe
import minesweeper
while True:
os.system("clear")
try:
choice = int(input(("""Enter your choice:\n1.Dice Roller\n2.Guess the number game\n3.Hangman Game\n4.Currency convertor\n5.Random Password Generator\n6.Tic Tac Toe\n7.Minesweeper""")))
except:
print("Wrong input")
time.sleep(0.2)
continue
os.system("clear")
if choice == 1:
diceroller()
elif choice == 2:
guess()
elif choice == 3:
hangman()
elif choice == 4:
inrconvertor()
elif choice == 5:
passwordgenerator()
elif choice == 6:
tictactoe()
elif choice == 7:
minesweeper()
else:
print("Wrong Choice")
time.sleep(0.3)