kyu_8.grasshopper_terminal_game_move_function package

Submodules

kyu_8.grasshopper_terminal_game_move_function.terminal_game_move_function module

Solution for -> Grasshopper - Terminal game move function.

Created by Egor Kostan. GitHub: https://github.com/ikostan

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

‘move’ function.

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: int :param roll: int :return: int

kyu_8.grasshopper_terminal_game_move_function.test_terminal_game_move_function module

Test for -> Grasshopper - Terminal game move function.

Created by Egor Kostan. GitHub: https://github.com/ikostan

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

Bases: TestCase

Testing move function.

_classSetupFailed = False
_class_cleanups = []
test_move()[source]

Testing ‘move’ function with various test data.

Returns:

Module contents

Grasshopper - Terminal game move function.