mirror of
https://github.com/SamueleLorefice/isleBot.git
synced 2026-01-14 21:55:49 +00:00
proof of concept made
This commit is contained in:
24
Player.py
Normal file
24
Player.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import string
|
||||
|
||||
from Card import Card
|
||||
|
||||
|
||||
class Player:
|
||||
id: string = ""
|
||||
name: string = ""
|
||||
activeCard: Card = None
|
||||
|
||||
|
||||
def __init__(self, id: string, name: string):
|
||||
self.id = id
|
||||
self.Name = name
|
||||
|
||||
def __str__(self):
|
||||
return f"Player: {self.Name} - ID: {self.id}"
|
||||
|
||||
def setActiveCard(self, card: Card):
|
||||
self.activeCard = card
|
||||
|
||||
def getActiveCard(self):
|
||||
return self.activeCard
|
||||
|
||||
Reference in New Issue
Block a user