Python Python Collections (2016, retired 2019) Dungeon Game Hit points

Hello team, I dont understand anything of this challenge, could you bring me a lot of help

help to understand the project

1 Answer

Chris Freeman
Chris Freeman
Treehouse Moderator 56,648 Points

The player is defined by a tuple of x, y, and hp. The move function should use the adjustments to x and y contained in the parameter direction to define the player’s new x and y.

This should be a straightforward combining of the positions with the following exceptions:

  • don’t let the new position be outside allowed grid values of 0 to 9
  • if the player’s move tries to go outside the grid, reduce the player hp points by 5.
  • return the new x, y, and hp

Post back if you need more help. Good luck!!!

than you Chris I resolved this.