mirror of
https://github.com/Smaug123/hanabi-server
synced 2025-10-10 02:58:40 +00:00
Initial commit
This commit is contained in:
20
HanabiWeb/card.py
Normal file
20
HanabiWeb/card.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import enum
|
||||
|
||||
|
||||
@enum.unique()
|
||||
class HanabiColour(enum.Enum):
|
||||
Red = enum.auto()
|
||||
Green = enum.auto()
|
||||
White = enum.auto()
|
||||
Yellow = enum.auto()
|
||||
Blue = enum.auto()
|
||||
|
||||
|
||||
class HanabiCard:
|
||||
def __str__(self):
|
||||
return "{} {}".format(self.rank, self.colour)
|
||||
|
||||
def __init__(self):
|
||||
self.colour = None
|
||||
self.rank = None
|
||||
|
Reference in New Issue
Block a user