mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-27 12:04:00 +03:00
22 lines
319 B
Python
22 lines
319 B
Python
|
"""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."""
|