From b85c20b65a3fd5dea3dc1ac8aa03019e9d3eaf97 Mon Sep 17 00:00:00 2001 From: bibin Date: Wed, 15 Jul 2020 16:09:17 +0200 Subject: [PATCH] started generalizing player --- src/package/games/players.py | 9 +++++++++ src/package/games/werewolf/players.py | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/package/games/players.py diff --git a/src/package/games/players.py b/src/package/games/players.py new file mode 100644 index 0000000..4db6972 --- /dev/null +++ b/src/package/games/players.py @@ -0,0 +1,9 @@ +"""Has a single class: Player""" + +# discord imports +import discord + + +class Player: + """This (abstract) class is a template for player objects for games""" + pass diff --git a/src/package/games/werewolf/players.py b/src/package/games/werewolf/players.py index 77f1589..c07abd6 100644 --- a/src/package/games/werewolf/players.py +++ b/src/package/games/werewolf/players.py @@ -1,7 +1,9 @@ import discord +from .player import Player -class Player: + +class Werewolf_player(Player): @staticmethod async def make(member, game):