Esempio n. 1
0
def check_move_west(x, y):
    assert_equals(movement.move(heading.headings.WEST, (x, y)), (x - 1, y))
Esempio n. 2
0
def check_move_south(x, y):
    assert_equals(movement.move(heading.headings.SOUTH, (x, y)), (x, y - 1))
Esempio n. 3
0
def check_move_east(x, y):
    assert_equals(movement.move(heading.headings.EAST, (x, y)), (x + 1, y))
Esempio n. 4
0
def check_move_north(x, y):
    assert_equals(movement.move(heading.headings.NORTH, (x, y)), (x, y + 1))