Compare commits

..

1 commit

Author SHA1 Message Date
307c3ff414 chore(): Expands the definitions of the entities
- Adds create methods to the room, person and cards
- Adds methods to add and remove person from room
2024-11-23 18:37:16 +01:00
3 changed files with 5 additions and 5 deletions

View file

@ -3,16 +3,17 @@ CARDS = {
"tshirt": ["XS", "S", "M", "L", "XL", "XXL", "XXXL", "?"], "tshirt": ["XS", "S", "M", "L", "XL", "XXL", "XXXL", "?"],
} }
class Cards: class Cards:
""" """
Cards class object Cards class object
""" """
def __init__(self, card_type = "fibonacci"):
def __init__(self, card_type="fibonacci"):
self.card_type = card_type self.card_type = card_type
self.cards = [] self.cards = []
self.create() self.create()
def create(self): def create(self):
""" """
Method to create a deck of cards Method to create a deck of cards

View file

@ -1,5 +1,6 @@
import uuid import uuid
class Person: class Person:
""" """
Person entity Person entity
@ -13,7 +14,6 @@ class Person:
self.uuid = None self.uuid = None
self.create() self.create()
def create(self): def create(self):
if not self.uuid: if not self.uuid:
self.uuid = uuid.uuid1() self.uuid = uuid.uuid1()

View file

@ -1,5 +1,6 @@
import uuid import uuid
class Room: class Room:
""" """
Room entity Room entity
@ -14,7 +15,6 @@ class Room:
self.attendant = [] self.attendant = []
self.create() self.create()
def create(self): def create(self):
""" """
Method to create a new room object Method to create a new room object
@ -24,7 +24,6 @@ class Room:
return self return self
def add_person(self, person: uuid.UUID): def add_person(self, person: uuid.UUID):
""" """
Method to add a person to a room Method to add a person to a room