git7 - calculates&displays flop stuff. I wouldnt go as far as claiming that "it works", but it runs without compiler/VM-caught error and it produces numbers - good enough till i get around to updating that damned print_hands

This commit is contained in:
steffen123
2008-08-04 19:57:33 +01:00
parent b377fd08c6
commit d95bc6dff6
2 changed files with 33 additions and 6 deletions
+26 -1
View File
@@ -1271,9 +1271,34 @@ def calculateHudImport(player_ids, category, action_types):
if action_types[3][player][count]=="fold":
mySawShowdown=True
#print "todo: finish boolean recognition"
#flop stuff
street=1
if mySawFlop:
for count in range(len(action_types[street][player])):
if action_types[street][player][count]=="bet":
myRaisedFlop=True
for otherPlayer in range (len(player_ids)):
if player==otherPlayer or myOtherRaisedFlop:
pass
else:
for countOther in range (len(action_types[street][otherPlayer])):
if action_types[street][otherPlayer][countOther]=="bet":
myOtherRaisedFlop=True
for countOtherFold in range (len(action_types[street][otherPlayer])):
if action_types[street][otherPlayer][countOtherFold]=="fold":
myOtherRaisedFlopFold=True
#turn stuff: todo
for count in range(len(action_types[2][player])):
if action_types[2][player][count]=="bet":
myRaisedTurn=True
#river stuff: todo
for count in range(len(action_types[3][player])):
if action_types[3][player][count]=="bet":
myRaisedRiver=True
#add each value to the appropriate array
VPIP.append(myVPIP)