Merge branch 'master' of git://git.assembla.com/free_poker_tools.git
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
<location seat="2" x="10" y="288"> </location>
|
||||
</layout>
|
||||
</site>
|
||||
<site enabled="True" site_name="Full Tilt" table_finder="FullTiltPoker.exe" screen_name="DO NOT NEED THIS YET" site_path="~/.wine/drive_c/Program Files/Full Tilt Poker/" HH_path="~/.wine/drive_c/Program Files/Full Tilt Poker/HandHistory/abc/" decoder="fulltilt_decode_table" converter="passthrough" supported_games="holdem,razz,omahahi,omahahilo,studhi,studhilo">
|
||||
<site enabled="True" site_name="Full Tilt Poker" table_finder="FullTiltPoker.exe" screen_name="DO NOT NEED THIS YET" site_path="~/.wine/drive_c/Program Files/Full Tilt Poker/" HH_path="~/.wine/drive_c/Program Files/Full Tilt Poker/HandHistory/abc/" decoder="fulltilt_decode_table" converter="passthrough" supported_games="holdem,razz,omahahi,omahahilo,studhi,studhilo">
|
||||
<layout fav_seat="0" height="547" max="8" width="794">
|
||||
<location seat="1" x="640" y="64"> </location>
|
||||
<location seat="2" x="650" y="230"> </location>
|
||||
|
||||
+4
-1
@@ -203,7 +203,10 @@ class Hud:
|
||||
|
||||
def reposition_windows(self, *args):
|
||||
for w in self.stat_windows.itervalues():
|
||||
if type(w) == int: continue
|
||||
if type(w) == int:
|
||||
print "in reposition, w =", w
|
||||
continue
|
||||
print "in reposition, w =", w, w.x, w.y
|
||||
w.window.move(w.x, w.y)
|
||||
return True
|
||||
|
||||
|
||||
+7
-18
@@ -469,23 +469,12 @@ def convert3B4B(site, category, limit_type, actionTypes, actionAmounts):
|
||||
for k in xrange(len(actionTypes[i][j])):
|
||||
if (actionTypes[i][j][k]=="bet"):
|
||||
bets.append((i,j,k))
|
||||
if (len(bets)==2):
|
||||
#print "len(bets) 2 or higher, need to correct it. bets:",bets,"len:",len(bets)
|
||||
amount2=actionAmounts[bets[1][0]][bets[1][1]][bets[1][2]]
|
||||
amount1=actionAmounts[bets[0][0]][bets[0][1]][bets[0][2]]
|
||||
actionAmounts[bets[1][0]][bets[1][1]][bets[1][2]]=amount2-amount1
|
||||
elif (len(bets)>2):
|
||||
fail=True
|
||||
#todo: run correction for below
|
||||
if (site=="ps" and category=="holdem" and limit_type=="nl" and len(bets)==3):
|
||||
fail=False
|
||||
if (site=="ftp" and category=="omahahi" and limit_type=="pl" and len(bets)==3):
|
||||
fail=False
|
||||
|
||||
if fail:
|
||||
print "len(bets)>2 in convert3B4B, i didnt think this is possible. i:",i,"j:",j,"k:",k
|
||||
print "actionTypes:",actionTypes
|
||||
raise FpdbError ("too many bets in convert3B4B")
|
||||
if (len(bets)>=2):
|
||||
#print "len(bets) 2 or higher, need to correct it. bets:",bets,"len:",len(bets)
|
||||
for betNo in reversed(xrange (1,len(bets))):
|
||||
amount2=actionAmounts[bets[betNo][0]][bets[betNo][1]][bets[betNo][2]]
|
||||
amount1=actionAmounts[bets[betNo-1][0]][bets[betNo-1][1]][bets[betNo-1][2]]
|
||||
actionAmounts[bets[betNo][0]][bets[betNo][1]][bets[betNo][2]]=amount2-amount1
|
||||
#print "actionAmounts postConvert",actionAmounts
|
||||
#end def convert3B4B(actionTypes, actionAmounts)
|
||||
|
||||
@@ -1476,7 +1465,7 @@ def recognisePlayerNo(line, names, atype):
|
||||
|
||||
#returns the site abbreviation for the given site
|
||||
def recogniseSite(line):
|
||||
if (line.startswith("Full Tilt Poker")):
|
||||
if (line.startswith("Full Tilt Poker") or line.startswith("FullTiltPoker")):
|
||||
return "ftp"
|
||||
elif (line.startswith("PokerStars")):
|
||||
return "ps"
|
||||
|
||||
Reference in New Issue
Block a user