-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
executable file
·48 lines (34 loc) · 879 Bytes
/
Copy pathtest.py
File metadata and controls
executable file
·48 lines (34 loc) · 879 Bytes
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
import class_name
import play_game
Table = class_name.Table()
initial_state = {
'BLOCKS':['A','B','C','D'],
'ON':[('A','B'),('C','D')],
'ONT':['B','D'],
'CLR':['C','A']
}
final_state = {
'BLOCKS':['A','B','C','D'],
'ON':[('C','D')],
'ONT':['A','B'],
'CLR':['A','B','C']
}
Table1 = play_game.initiate_game(initial_state, Table)
# initial condition met
print("INITIAL STATE:-")
for key,value in initial_state.items():
print(key,value)
Table.print_table()
Table.US('A','B')
print("Unstacked A:-")
Table.print_table()
Table.PD()
print("Putdown A")
Table.print_table()
print("FINAL STATE:-")
for key,value in final_state.items():
print(key,value)
print("\n-----------------------------------------------")
print("System generated final state")
Table1 = play_game.initiate_game(final_state, class_name.Table())
Table1.print_table()