Commit 9f7798de authored by Ehsan Jahangirzadeh's avatar Ehsan Jahangirzadeh
Browse files

add new tests

parent 57f7be4f
......@@ -8,8 +8,8 @@ import time
BOARD_SIZE = 8
def bfs_main():
queens = read_input("tests/test_5.csv")
def bfs_main(test):
queens = read_input(test)
# print_grid(make_grid(queens, BOARD_SIZE))
actions = np.array([[0, -1], [0, 1], [1, 0], [-1, 0], [1, 1], [-1, -1], [-1, 1], [1, -1]])
......@@ -22,8 +22,8 @@ def bfs_main():
print_grid(make_grid(bfs_res, BOARD_SIZE))
def ids_main():
queens = read_input("tests/test_3.csv")
def ids_main(test):
queens = read_input(test)
# print_grid(make_grid(queens, BOARD_SIZE))
actions = np.array([[0, -1], [0, 1], [1, 0], [-1, 0], [1, 1], [-1, -1], [-1, 1], [1, -1]])
......@@ -36,8 +36,8 @@ def ids_main():
print_grid(make_grid(ids_res, BOARD_SIZE))
def a_start_main():
queens = read_input("tests/test_3.csv")
def a_start_main(test):
queens = read_input(test)
# print_grid(make_grid(queens, BOARD_SIZE))
actions = np.array([[0, -1], [0, 1], [-1, 0], [1, 0], [1, 1], [-1, -1], [-1, 1], [1, -1]])
......@@ -51,7 +51,7 @@ def a_start_main():
if __name__ == '__main__':
# bfs_main()
# ids_main()
a_start_main()
# bfs_main('tests/test_a.csv')
# ids_main('tests/test_a.csv')
a_start_main('tests/test_a.csv')
1,3
2,4
3,7
4,1
5,8
6,2
7,5
8,3
\ No newline at end of file
1,2
3,2
3,4
4,4
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment