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

View File

@ -2,17 +2,18 @@ todolist (db=database, imp=importer, tv=tableviewer)
before alpha
===========
add back postflop and stud functionality to hud and import-HudData
add back turn, river and stud functionality to hud and import-HudData
db+imp+tv WtSD (went to showdown)
db+imp+tv W$SD (won $ when seeing showdown - partial win counts partially here)
db+imp+tv WwSF (Won when seen flop - partial taken into account)
change action_no to be total for this street rather than just for one player
properly read 3B/4B percentage
fix load profile
fix tv browse button size
tourney bug: sometimes truncuates position on store -> possibly indicates much bigger problem
tourney bug: fails recognisePlayer
tourney bug: fails with tuple error in recogniseplayerid
db+imp+tv WtSD (went to showdown)
db+imp+tv W$SD (won $ when seeing showdown - partial win counts partially here)
db+imp+tv WwSF (Won when seen flop - partial taken into account)
config wizard
catch index error, type error, file not found error
update install instructions
@ -22,6 +23,7 @@ remove mysql/myisam support.
before beta
===========
change stud street storage from 3-7 to 0-4 throughout
make bulk importer display a grand total in the GUI
change save_to_db into one method and probably move into parse_logic
Any comment or print with "todo" in it in the sourcecode except what is marked todo in the menu
@ -38,6 +40,7 @@ verify at least 2 or 3 sng hands
no rush but before 1.0RC
========================
cut down action_types array size to appropriate length
make tv work with ftp e.g. by making importer return site as well (easy)
make the gui display errors
log file
@ -51,7 +54,6 @@ put lines in tv to make it easier to read
speed up so that refresh after importing my whole DB takes no more than 10 seks on my P3M-800 (a quick run on git5+ indicates this is ok now), or 5 with remote DB
select range of stakes and sng/mtt values and types for tv
change "for i" to more sensible var name instead of i
change stud street storage from 3-7 to 0-4 throughout
in all importer: stop doing if site=="ftp", make class constants for site_id instead
recognise somewhere if a file is still active and if so keep it open and only read new hands rather than detecting dupes
gentoo ebuild

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)