0
python game
https://code.sololearn.com/cZEfQoIjMx8e/#py i think i put everything right but the game just doesn't fallow with me
1 Answer
0
Your game does not follow with you because the function "move_player" does not do anything besides return back the original argument "player". You need to instruct it to change the player's position based on the user input "move", and then return the new position. Keep in mind though, that you've created the variable "player" as a tuple, which is immutable, so you cannot simply reassign its individual elements. You'd need to create a new variable with the adjusted position, and return that.
On a side note, I'd recommend adding in comments to your code to explain what it is happening. This would make it easier for others to understand your code.