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
|
||||
########################################################################
|
||||
|
||||
import HandHistoryConverter
|
||||
|
||||
class EverleafPoker(HandHistoryConverter):
|
||||
def __init__:
|
||||
print "Everleaf Poker hand converter loading"
|
||||
from HandHistoryConverter import HandHistoryConverter
|
||||
|
||||
class Everleaf(HandHistoryConverter):
|
||||
def __init__(self):
|
||||
print "Initialising Everleaf converter class"
|
||||
def readSupportedGames(self):
|
||||
return
|
||||
def determineGameType(self):
|
||||
return
|
||||
def readPlayerStacks(self):
|
||||
return
|
||||
def readBlinds(self):
|
||||
return
|
||||
def readAction(self):
|
||||
return
|
||||
pass
|
||||
|
||||
def determineGameType(self):
|
||||
pass
|
||||
|
||||
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.
|
||||
|
||||
class HandHistoryConverter:
|
||||
def __init__(self, site):
|
||||
print "HandHistoryConverter __init__"
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
# Functions to be implemented in the inheriting class
|
||||
def readSupportedGames(self): abstract
|
||||
def determineGameType(self): abstract
|
||||
def readPlayerStacks(self): abstract
|
||||
def readBlinds(self): abstract
|
||||
def readAction(self): abstract
|
||||
|
||||
# Functions not necessary to implement in sub class
|
||||
def readFile(self, filename):
|
||||
"""Read file"""
|
||||
|
||||
def writeStars(self):
|
||||
"""Write out parsed data"""
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user