Compare commits
No commits in common. "a492a0bb6ab9e20da6a523a4e6823fb0b89ea6e0" and "9e00a5f744fca1d61f2b69acdb1eae8e63e46d17" have entirely different histories.
a492a0bb6a
...
9e00a5f744
4 changed files with 0 additions and 62 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1 @@
|
|||
__pycache__/
|
||||
.idea/
|
||||
|
|
|
@ -2,23 +2,3 @@ CARDS = {
|
|||
"fibonacci": [0.5, 1, 2, 3, 5, 8, 13, 21, 34, 55, "?"],
|
||||
"tshirt": ["XS", "S", "M", "L", "XL", "XXL", "XXXL", "?"],
|
||||
}
|
||||
|
||||
class Cards:
|
||||
"""
|
||||
Cards class object
|
||||
"""
|
||||
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
|
||||
"""
|
||||
if self.card_type in CARDS.keys():
|
||||
self.cards = CARDS[self.card_type]
|
||||
return self
|
||||
|
||||
return None
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import uuid
|
||||
|
||||
class Person:
|
||||
"""
|
||||
Person entity
|
||||
|
@ -10,12 +8,3 @@ class Person:
|
|||
Person entity initializer
|
||||
"""
|
||||
self.name = name
|
||||
self.uuid = None
|
||||
self.create()
|
||||
|
||||
|
||||
def create(self):
|
||||
if not self.uuid:
|
||||
self.uuid = uuid.uuid1()
|
||||
|
||||
return self
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import uuid
|
||||
|
||||
class Room:
|
||||
"""
|
||||
Room entity
|
||||
|
@ -10,31 +8,3 @@ class Room:
|
|||
Room entity initializer
|
||||
"""
|
||||
self.name = name
|
||||
self.uuid = None
|
||||
self.attendant = []
|
||||
self.create()
|
||||
|
||||
|
||||
def create(self):
|
||||
"""
|
||||
Method to create a new room object
|
||||
"""
|
||||
if not self.uuid:
|
||||
self.uuid = uuid.uuid1()
|
||||
|
||||
return self
|
||||
|
||||
|
||||
def add_person(self, person: uuid.UUID):
|
||||
"""
|
||||
Method to add a person to a room
|
||||
"""
|
||||
if person not in self.attendant:
|
||||
self.attendant.append(person)
|
||||
|
||||
def remove_person(self, person: uuid.UUID):
|
||||
"""
|
||||
Method to remove a person from a room
|
||||
"""
|
||||
if person in self.attendant:
|
||||
self.attendant.remove(person)
|
||||
|
|
Loading…
Reference in a new issue