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", "?"],
}
class Cards:
"""
Cards class object
"""
def __init__(self, card_type = "fibonacci"):
def __init__(self, card_type="fibonacci"):
self.card_type = card_type
self.cards = []
self.create()
def create(self):
"""
Method to create a deck of cards

View file

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

View file

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