-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
44 lines (24 loc) · 791 Bytes
/
main.py
File metadata and controls
44 lines (24 loc) · 791 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
37
38
39
40
41
42
43
44
# Poker Engine Testing
# W Carpenter
# August 2024
from importlib import reload
import poker_game_engine as engine
if __name__ == "__main__":
# In case new changes were made
reload(engine)
# Create new Game
# Small blind, big blind, buy-in amount, number of players
g = engine.Game(10, 20, 300, 6)
print("Blinds: ")
print()
print(g.bb)
print(g.sb)
# create a round, no betting but see that each player has cards
g.play_round()
# shows player
# print(g.players[0])
#print(g.players[0].show_hand())
# Looking at a players cards
for item in g.players[0].get_hand():
print(item)
print(item.card_value)