kyu_8.terminal_game_move_function package

Submodules

kyu_8.terminal_game_move_function.terminal_game_move_function module

kyu_8.terminal_game_move_function.terminal_game_move_function.move(position: int, roll: int) → int[source]

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:

kyu_8.terminal_game_move_function.test_terminal_game_move_function module

class kyu_8.terminal_game_move_function.test_terminal_game_move_function.MoveTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing move function

test_move()[source]

The player rolls the dice and moves the number of spaces indicated by the dice two times.

Pass position and roll and compare the output to the expected result :return:

Module contents