uuid -> id
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user