forked from farbod-behnam/blackjack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (20 loc) · 731 Bytes
/
main.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
from play import Play
#-----------------------------------------------------------------------------------
# main
# -----------------------------------------------------------------------------------
def main():
while True:
new_game = Play()
while new_game.get_chip_pool() > 0:
new_game.reset_hands()
new_game.make_bet()
new_game.deal_cards()
new_game.game_status()
new_game.hit()
new_game.stand()
new_game.game_status()
if new_game.restart():
continue
# =======================================================================================================
if __name__ == "__main__":
main()