14th Feb 2024, 1:13 PM
Sanjaykrishna Hegade 🇮🇳
Sanjaykrishna Hegade 🇮🇳 - avatar
2 Answers
+ 1
Sanjaykrishna Hegade 🇮🇳 the bug is in move_player(). When the die roll would result in an invalid move the move_player() function fails to return any value, so the calling procedure gets None and assigns that to its new position. Later, the logic tries to perform addition with None, but Python does not allow it. Insert at line 37: return player
14th Feb 2024, 3:45 PM
Brian
Brian - avatar
0
Use Feed post for suggestions.
14th Feb 2024, 3:05 PM
A͢J
A͢J - avatar