2026-rff_mp/volkovim/task2/command/player.py
2026-05-24 21:48:59 +03:00

13 lines
302 B
Python

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})"