-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.py
68 lines (50 loc) · 1.59 KB
/
Menu.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# Copyright (c) James Quintero 2020
#
# Last Modified: 12/2022
#
#Menu provided to user for playing or simulating Mississippi Stud
from Play import Play
from Simulate import Simulate
class MississippiStud:
def __init__(self):
pass
"""
Provides menu to the user
"""
def run(self):
print("Menu: ")
print("1) Play")
print("2) Simulate")
print("3) Give best strategy")
choice = int(input("Choice: "))
#play
if choice == 1:
play = Play()
play.play()
#simulate
if choice == 2:
self.simulate_menu()
#print best strategy
if choice == 3:
print("Nothing here, yet")
def simulate_menu(self):
simulate = Simulate()
print("Simulation menu: ")
print("1) Simulate all cards")
print("2) Simulate important cards (ex: KxAx is same as KxJx, 9x10 same as 9x6x, etc, so only simulate one)")
print("3) Simulate flushes (Simulate flush possibilities while seeing other player's cards)")
print("4) Simulate high cards (Player has two high cards and you see other player's hands)")
choice = int(input("Choice: "))
if choice == 1:
# self.simulate()
simulate.simulate_all_cards()
elif choice == 2:
simulate.simulate_important_cards()
elif choice == 3:
simulate.simulate_flushes()
elif choice == 4:
simulate.simulate_high_cards()
if __name__=="__main__":
mississippi_stud = MississippiStud()
mississippi_stud.run()