-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimplement.txt
59 lines (34 loc) · 1.62 KB
/
implement.txt
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
hand rankings
showdown as funct end of river?
table, table players, start wity any stack
big blind before turn..
time to act
side pots, is it a new betting round within?
ideas
tell player they have position or not to bettor, raiser
straight
you have to shift only twice max?
return no of not 5
check only once with reverse order
populate cards with same suit first
hands become classes with custom equal and greater
on showdown we return hands in order but 2 or more could have tied? side pots..
if a player is all in you shouldnt be able to raise unless his stack is less
also following player can have smaller stack and be able to call only part of the raise, or the CALL!
if you can raise second pot needs to be initiated if you do
if you only call no need to second pot
if all players are all in or folded no more betting, but it isn't over! need to go both streets
Over and BettingOver should be bet callbacks..
need to remove one of the same cards in a straight if they compose the straight..
do pots contain value? Return false or pots that contain value
Hand info, what players did! Should be printed for interactive player
####
fractions of pot betsizes
multiples of previous bet raises
start starts street from current street..
ok cards are dealt before state is saved..
but the before the betting round we check to see if there is a betting history for that street, and if there is we run it
the problem is we have to insert ourselves in the loop, I think what we can do is impersonate the players...until the history ends
and becomes interactive again
NO!
just use the last player to act, you have the correct state!