Пример #1
0
def test_find_new_pos_right_edge():
    new_board = pacman.find_new_pos(["..",
                                     ".<",
                                     ".."])
    eq_(new_board, (0, 1))
Пример #2
0
def test_find_new_pos_up():
    new_board = pacman.find_new_pos(["..", ".V", ".."])
    eq_(new_board, (1, 0))
Пример #3
0
def test_find_new_pos_down():
    new_board = pacman.find_new_pos(["..", ".A", ".."])
    eq_(new_board, (1, 2))
Пример #4
0
def test_find_new_pos_left():
    new_board = pacman.find_new_pos(["..", ".>", ".."])
    eq_(new_board, (0, 1))
Пример #5
0
def test_find_new_pos_right():
    new_board = pacman.find_new_pos(["..", "<.", ".."])
    eq_(new_board, (1, 1))
Пример #6
0
def test_find_new_pos_down_edge():
    new_board = pacman.find_new_pos(["..",
                                     "..",
                                     "A."])
    eq_(new_board, (0, 0))
Пример #7
0
def test_find_new_pos_up_edge():
    new_board = pacman.find_new_pos(["V.",
                                     "..",
                                     ".."])
    eq_(new_board, (0, 2))
Пример #8
0
def test_find_new_pos_left_edge():
    new_board = pacman.find_new_pos(["..",
                                     ">.",
                                     ".."])
    eq_(new_board, (1, 1))