-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.byebug_history
256 lines (256 loc) · 2.4 KB
/
.byebug_history
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
skip
exit
piece.moves.include?([7,4])
king_pos
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
piece
c
break 169
king_pos
opposing_pieces.any? { |piece| piece.moves.include?(king_pos)}
king_pos
s
list=
opposing_pieces
n
opposing_color
n
king_pos
n
s
n
self
n
b
n
color
s
@color
n
board_dup[[4,7]]
board_dup[[7,4]]
n
exit
[2,2] == [2,2]
end_pos
skip
c
board_dup
n
exit
ext
board_dup
n
s
exit
s
moves
valid_moves
c
moves
c
n
moves
n
s
@board[@cursor.cursor_pos].valid_moves
n
s
valid_moves(selected_tiles)
valid_moves()
@cursor.cursor_pos[1]
@cursor.cursor_pos[0]
s
selected_tiles
c
print_options
n
list=
@cursor.cursor_pos[1]
@cursor.cursor_pos[0]
valid_moves(selected_tiles)
s
selected_tiles
c
n
selected_tiles
n
move
n
exit
moves
c
@cursor.cursor_pos
selected_tiles
skip
c
list=
c
WTF?
wtf
self
pieces
pieces.find { |tile| tile.instance_of?(King) && tile.color == color }
color
king_pos
c
king_pos
exit
pieces.find { |tile| tile.instance_of?(King) && tile.color == color }
end
tile.instance_of?(King) && tile.color == color
pieces.any? do |tile|
color
pieces
@current_player == @players[:player1]
@current_player
@current_player == :player1
@current_player
c
skip
@current_player.color
n
@current_player == :player1 ? @players[:player2] : @players[:player1]
c
exit
@current_player == :player1 ? @players[:player2] : @players[:player1]
@current_player = @current_player == :player1 ? @players[:player2] : @players[:player1]
c
exit
self[start_pos].color == current_color
skip
exit
@board[move].valid_moves
move
n
c
n
c
selected_tiles.length
selected_tiles
n
selected_tiles
exit
skip
c
n
c
n
s
key
n
s
n
exit
move
n
@board[@cursor.cursor_pos].valid_moves
@board[@cursor.cursor_pos]
@cursor.cursor_pos
c
board[[6,6]].moves
board[[6,6]]
board
self
valid_moves
n
s
n
s
c
display end_pos
c
n
c
self[start_pos]
start_pos
display end_pos
c
n
end_pos
exit
piece.valid_moves.length
piece.valid_moves.sum
piece.valid_moves
piece
n
display piece
n
c
n
display memo
n
display piece
c
n
undisplay 1
undisplay piece
display piece
display piec
piece
n
piece.valid_moves.sum
piece.valid_moves
piece
memo
player_pieces
s
list=
player_pieces
c
cc
c
duped_board.rows[0]
row
row.object_id
duped_board.rows.object_id
c
display row_idx
row_idx
c
row_idx
c
row_idx
c
row_idx
c
n
list=
duped_board.rows[0] = row.dup
duped_board.rows[0]
duped_board.rows
row.dup
s
n
end_pos
position
n
s
c
exit
duped_board.rows[0]