Compare commits

..

1 commit

Author SHA1 Message Date
a492a0bb6a 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:31:53 +01:00
3 changed files with 5 additions and 5 deletions

View file

@ -3,17 +3,16 @@ 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,6 +1,5 @@
import uuid
class Person:
"""
Person entity
@ -14,6 +13,7 @@ class Person:
self.uuid = None
self.create()
def create(self):
if not self.uuid:
self.uuid = uuid.uuid1()

View file

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