uuid -> id

This commit is contained in:
Eden Kirin
2023-03-31 17:19:26 +02:00
parent 10290dba54
commit edca936325
4 changed files with 35 additions and 35 deletions

View File

@ -18,23 +18,23 @@ def main() -> None:
print()
print("Initial player position is", game.player.position)
player_uuid = game.player.uuid
player_id = game.player.id
try:
print("Trying to move right")
moveResult = fh.move(player_uuid, Direction.RIGHT)
moveResult = fh.move(player_id, Direction.RIGHT)
print("Successfully moved to", moveResult.player.position)
print("Trying to move right")
moveResult = fh.move(player_uuid, Direction.RIGHT)
moveResult = fh.move(player_id, Direction.RIGHT)
print("Successfully moved to", moveResult.player.position)
print("Trying to move right")
moveResult = fh.move(player_uuid, Direction.RIGHT)
moveResult = fh.move(player_id, Direction.RIGHT)
print("Successfully moved to", moveResult.player.position)
print("Trying to move down")
moveResult = fh.move(player_uuid, Direction.DOWN)
moveResult = fh.move(player_id, Direction.DOWN)
print("Successfully moved to", moveResult.player.position)
except PositionError:
print("Cant't move in this direction")