-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmaze.kv
129 lines (127 loc) · 3.89 KB
/
maze.kv
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<RootWidgit>:
GridLayout:
cols: 3
GridLayout:
id: maze_board
cols: 3
size_hint_x: .45
spacing: 10, 10
padding: 10
GridLayout:
id: value_board
spacing: 2.5, 2.5
padding: 4
size_hint_x: .45
canvas:
Color:
rgba: 1, 1, 1, 1
Rectangle:
pos: self.pos
size: self.size
GridLayout:
padding: 5, 5, 5, 5
rows: 10
size_hint_x: .1
canvas:
Color:
rgba: 1, 1, 1, 0.9
Rectangle:
pos: self.pos
size: self.size
GridLayout:
size_hint_y: 0.2
rows: 5
padding: 0, 0, 0, 5
GridLayout:
cols: 2
Label:
text: 'Episodes'
color: 0, 0, 0, 1
font_size: '13sp'
Label:
id: episode_label
text: '0'
color: 0, 0, 0, 1
GridLayout:
cols: 2
Label:
text: 'γ'
color: 0, 0, 0, 1
Label:
id: discount_label
text: '0.0'
color: 0, 0, 0, 1
GridLayout:
cols: 2
Label:
text: 'ε'
color: 0, 0, 0, 1
Label:
id: epsilon_label
text: '0.0'
color: 0, 0, 0, 1
GridLayout:
cols: 2
Label:
text: 'α'
color: 0, 0, 0, 1
Label:
id: learning_rate_label
text: '0.0'
color: 0, 0, 0, 1
GridLayout:
cols: 2
Label:
text: 'λ'
color: 0, 0, 0, 1
Label:
id: lambda_label
text: '0.0'
color: 0, 0, 0, 1
Button:
size_hint_y: 0.09
id: learn_toggle_button
text: 'Learn'
Button:
size_hint_y: 0.09
id: random_respawn_button
text: 'Random\nRespawn'
Button:
size_hint_y: 0.09
id: reset_button
text: 'Reset'
Button:
size_hint_y: 0.09
id: speed_button
text: 'Speed: 1'
halign: 'center'
Button:
size_hint_y: 0.09
id: next_maze_button
text: 'Maze: 1'
GridLayout:
size_hint_y: 0.09
cols: 3
Label:
text: 'α'
color: 0, 0, 0, 1
halign: 'center'
Button:
id: learning_rate_increase_button
text: '+'
Button:
id: learning_rate_decrease_button
text: '-'
GridLayout:
size_hint_y: 0.09
cols: 3
Label:
text: 'λ'
color: 0, 0, 0, 1
halign: 'center'
Button:
id: lambda_increase_button
text: '+'
Button:
id: lambda_decrease_button
text: '-'