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