-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_search.py
36 lines (27 loc) · 1.31 KB
/
test_search.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from connect_four import file_to_state, print_state
from search import iterative_dfs_negamax
if __name__ == '__main__':
state = file_to_state('states/test_state_search_1.txt')
print_state(state)
action = iterative_dfs_negamax(state, 20, 5, white_player=False)
state = file_to_state('states/test_state_search_2.txt')
print_state(state)
action = iterative_dfs_negamax(state, 20, 5, white_player=True)
state = file_to_state('states/test_state_search_3.txt')
print_state(state)
action = iterative_dfs_negamax(state, 20, 5, white_player=False)
state = file_to_state('states/test_state_search_4.txt')
print_state(state)
action = iterative_dfs_negamax(state, 20, 5, white_player=False)
state = file_to_state('states/test_state_search_5.txt')
print_state(state)
action = iterative_dfs_negamax(state, 20, 10, white_player=True)
state = file_to_state('states/test_state_search_6.txt')
print_state(state)
action = iterative_dfs_negamax(state, 20, 10, white_player=True)
state = file_to_state('states/test_state_Sep23.txt')
print_state(state)
action = iterative_dfs_negamax(state, 20, 10, white_player=True)
state = file_to_state('states/test_state_Sep23_1.txt')
print_state(state)
action = iterative_dfs_negamax(state, 20, 10, white_player=False)