2008-11-07 09:47:00 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
#Copyright 2008 Carl Gherardi
|
|
|
|
#This program is free software: you can redistribute it and/or modify
|
|
|
|
#it under the terms of the GNU Affero General Public License as published by
|
|
|
|
#the Free Software Foundation, version 3 of the License.
|
|
|
|
#
|
|
|
|
#This program is distributed in the hope that it will be useful,
|
|
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
#GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
#You should have received a copy of the GNU Affero General Public License
|
|
|
|
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#In the "official" distribution you can find the license in
|
|
|
|
#agpl-3.0.txt in the docs folder of the package.
|
|
|
|
|
|
|
|
class HandHistoryConverter:
|
2008-11-07 11:19:18 +01:00
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
# Functions to be implemented in the inheriting class
|
2008-11-07 09:47:00 +01:00
|
|
|
def readSupportedGames(self): abstract
|
|
|
|
def determineGameType(self): abstract
|
|
|
|
def readPlayerStacks(self): abstract
|
|
|
|
def readBlinds(self): abstract
|
|
|
|
def readAction(self): abstract
|
|
|
|
|
2008-11-07 11:19:18 +01:00
|
|
|
# Functions not necessary to implement in sub class
|
2008-11-07 09:47:00 +01:00
|
|
|
def readFile(self, filename):
|
|
|
|
"""Read file"""
|
|
|
|
|
|
|
|
def writeStars(self):
|
|
|
|
"""Write out parsed data"""
|
|
|
|
|
2008-11-07 11:19:18 +01:00
|
|
|
|