-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgames.py
31 lines (25 loc) · 803 Bytes
/
games.py
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
import time
from definitions import *
import banking
import config
import slots
def select():
banking.just_check()
games = {
"slots": slots.play,
# "blackjack": blackjack.play,
# "roulette": roulette.play,
# "poker": poker.play
}
valid_games = ", ".join(games.keys())
while True:
print(f"We have a variety of games available to play! including: " + BLUE + f"{valid_games}!\n" + RESET)
time.sleep(1)
game = config.handle_input("Let's get started! What game would you like to play? ")
game_func = games.get(game.lower())
if game_func:
game_func()
else:
print(RED + f"\n{game} is not a game we have! Please enter a valid game.\n" + RESET)
time.sleep(2)
# select()