Curso-lenguaje-python/catch-all/06_bots_telegram/07_movie2_bot/player/Player.py

18 lines
283 B
Python
Raw Normal View History

2024-07-30 00:43:20 +02:00
class Player:
id = ''
points = 0
name = ''
def __init__(self, uid):
self.id = uid
def get_points(self):
return self.points
def set_name(self, name):
self.name = name
def add_points(self, points):
self.points += points