-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (23 loc) · 687 Bytes
/
Copy pathmain.py
File metadata and controls
25 lines (23 loc) · 687 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
from gtn import guess_the_number
from rps import rock_paper_scissors
from wordle import Wordle
while True:
txt = """Mini Games!!!
- Guess The Number (1)
- Rock, Paper, Scissors (2)
- Wordle (3)
- ConnectFour (4)
- Tic Tac Toe (5)
Select a game (press a number or 'q' to quit): """
value = input(txt)
if value == "1":
guess_the_number(100)
# ! ask user for second input for upper bound
elif value == "2":
rock_paper_scissors()
# ! check against all possible cases, "Rock smashes scissors"
elif value == "3":
game = Wordle()
game.play()
elif value == "q":
break