Make Everleaf actully inherit from the super class
This commit is contained in:
parent
7e41c73742
commit
70f9e6edca
|
@ -16,20 +16,25 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
import HandHistoryConverter
|
from HandHistoryConverter import HandHistoryConverter
|
||||||
|
|
||||||
class EverleafPoker(HandHistoryConverter):
|
class Everleaf(HandHistoryConverter):
|
||||||
def __init__:
|
def __init__(self):
|
||||||
print "Everleaf Poker hand converter loading"
|
print "Initialising Everleaf converter class"
|
||||||
|
def readSupportedGames(self):
|
||||||
|
pass
|
||||||
|
|
||||||
def readSupportedGames(self):
|
def determineGameType(self):
|
||||||
return
|
pass
|
||||||
def determineGameType(self):
|
|
||||||
return
|
|
||||||
def readPlayerStacks(self):
|
|
||||||
return
|
|
||||||
def readBlinds(self):
|
|
||||||
return
|
|
||||||
def readAction(self):
|
|
||||||
return
|
|
||||||
|
|
||||||
|
def readPlayerStacks(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def readBlinds(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def readAction(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
e = Everleaf()
|
||||||
|
|
|
@ -16,18 +16,20 @@
|
||||||
#agpl-3.0.txt in the docs folder of the package.
|
#agpl-3.0.txt in the docs folder of the package.
|
||||||
|
|
||||||
class HandHistoryConverter:
|
class HandHistoryConverter:
|
||||||
def __init__(self, site):
|
def __init__(self):
|
||||||
print "HandHistoryConverter __init__"
|
pass
|
||||||
|
# Functions to be implemented in the inheriting class
|
||||||
def readSupportedGames(self): abstract
|
def readSupportedGames(self): abstract
|
||||||
def determineGameType(self): abstract
|
def determineGameType(self): abstract
|
||||||
def readPlayerStacks(self): abstract
|
def readPlayerStacks(self): abstract
|
||||||
def readBlinds(self): abstract
|
def readBlinds(self): abstract
|
||||||
def readAction(self): abstract
|
def readAction(self): abstract
|
||||||
|
|
||||||
|
# Functions not necessary to implement in sub class
|
||||||
def readFile(self, filename):
|
def readFile(self, filename):
|
||||||
"""Read file"""
|
"""Read file"""
|
||||||
|
|
||||||
def writeStars(self):
|
def writeStars(self):
|
||||||
"""Write out parsed data"""
|
"""Write out parsed data"""
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user