-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcs404a2_26288.py
54 lines (46 loc) · 1.53 KB
/
cs404a2_26288.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
Author: Ugur Mengilli
Title: CS 404 - Assignment 2: Akari Game
Implements the given assignment
"""
from akarigame import AkariGame
str_map1 = '| | | | | | |x|\n' \
'| | |4| | | | |\n' \
'|0| | | |1|x| |\n' \
'| | | |1| | | |\n' \
'| |x|1| | | |x|\n' \
'| | | | |x| | |\n' \
'|1| | | | | | |'
str_map2 = '| | | | | |1| | |\n' \
'| |3|x| | | | | |\n' \
'| | | | | | |0| |\n' \
'|x| | | |x| | | |\n' \
'| | | |4| | | |0|\n' \
'| |2| | | | | | |\n' \
'| | | | | |1|x| |\n' \
'| | |x| | | | | |'
str_map3 = '| | | | | | | | | | |\n' \
'| |4| | |x| | | |2| |\n' \
'| | |x| | | | | |x| |\n' \
'| | | | |x|0| | | | |\n' \
'| | | | | | | | | | |\n' \
'| | | | | | | | | | |\n' \
'| | | | |1|x| | | | |\n' \
'| |1| | | | | |0| | |\n' \
'| |1| | | |1| | |x| |\n' \
'| | | | | | | | | | |'
str_map4 = '|x| | |x| | | | | |x|\n' \
'| | | | | | | |x| | |\n' \
'| |3| | | | |0| | | |\n' \
'| | |2| | |x| | | |1|\n' \
'| | | |1|0|x| | | | |\n' \
'| | | | |1|x|x| | | |\n' \
'|x| | | |2| | |2| | |\n' \
'| | | |x| | | | |x| |\n' \
'| | |1| | | | | | | |\n' \
'|0| | | | | |1| | |0|'
maps = [str_map1, str_map2, str_map3, str_map4]
for str_map in maps:
akari = AkariGame(str_map)
akari.search_for_all_solutions()
print()