From 7e41c737424e0e622bcccc5f3b8c4b72da6e692b Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 7 Nov 2008 21:47:00 +1300 Subject: [PATCH] Add initial versions of Hand Converter class, and initial implementation. --- pyfpdb/EverleafToFpdb.py | 35 ++++++++++++++++++++++++++++++++++ pyfpdb/HandHistoryConverter.py | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 pyfpdb/EverleafToFpdb.py create mode 100644 pyfpdb/HandHistoryConverter.py diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py new file mode 100644 index 00000000..e3c7c390 --- /dev/null +++ b/pyfpdb/EverleafToFpdb.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python +# Copyright 2008, Carl Gherardi +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# 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 General Public License +# along with this program; if not, write to the Free Software +# 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" + + def readSupportedGames(self): + return + def determineGameType(self): + return + def readPlayerStacks(self): + return + def readBlinds(self): + return + def readAction(self): + return + diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py new file mode 100644 index 00000000..5b91a360 --- /dev/null +++ b/pyfpdb/HandHistoryConverter.py @@ -0,0 +1,33 @@ +#!/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 . +#In the "official" distribution you can find the license in +#agpl-3.0.txt in the docs folder of the package. + +class HandHistoryConverter: + def __init__(self, site): + print "HandHistoryConverter __init__" + + def readSupportedGames(self): abstract + def determineGameType(self): abstract + def readPlayerStacks(self): abstract + def readBlinds(self): abstract + def readAction(self): abstract + + def readFile(self, filename): + """Read file""" + + def writeStars(self): + """Write out parsed data""" +