Source code for kyu_8.terminal_game_move_function.terminal_game_move_function
# Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
[docs]def move(position: int, roll: int) -> int:
"""
A function for the terminal game that takes
the current position of the hero and the roll
(1-6) and return the new position.
:param position:
:param roll:
:return:
"""
return position + (roll * 2)