python-dependency-injector/examples/providers/factory_aggregate/games.py

22 lines
319 B
Python
Raw Normal View History

"""Example module."""
class Game(object):
"""Base game class."""
def play(self):
"""Play game."""
print('Playing {0}'.format(self.__class__.__name__.lower()))
class Chess(Game):
"""Chess game."""
class Checkers(Game):
"""Checkers game."""
class Ludo(Game):
"""Ludo game."""