uris77
10/23/2012 - 3:51 AM

number_sequence_generator.py

from abc import ABCMeta, abstractmethod, abstractproperty

class NumberSequenceGenerator(object):
    __metaclass__ = ABCMeta

    @abstractmethod
    def next_turn_number(self):
        raise NotImplementedError("Should implement next_turn_number()!")

    @abstractproperty
    def turn_number(self):
        raise NotImplementedError("Should implement turn_number()!")