2026-rff_mp/volkovim/task2/command/player.py

13 lines
302 B
Python
Raw Normal View History

2026-05-24 18:48:59 +00:00
class Player:
def __init__(self, start_cell):
self.current = start_cell
def place(self, cell):
self.current = cell
def getPosition(self):
return self.current.getPosition()
def __str__(self):
x, y = self.getPosition()
return f"Player({x}, {y})"