Skip to content

Commit 38fddfc

Browse files
committed
Added some comments
1 parent 86fcb65 commit 38fddfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

views/minesweeper_game_screen.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static inline void bfs_tile_clear(MineSweeperGameScreenModel* model) {
330330
Point curr_pos = pointobj_get_point(pos);
331331
uint16_t curr_pos_1d = curr_pos.x * model->board_width + curr_pos.y;
332332

333-
// If in visited continue
333+
// If in visited set continue
334334
if (point_set_cget(set, pos) != NULL) {
335335
continue;
336336
}
@@ -356,6 +356,7 @@ static inline void bfs_tile_clear(MineSweeperGameScreenModel* model) {
356356
continue;
357357
}
358358

359+
// Search all neighbors and add valid to dequeue
359360
for (uint8_t i = 0; i < 8; i++) {
360361
int16_t dx = curr_pos.x + (int16_t)offsets[i][0];
361362
int16_t dy = curr_pos.y + (int16_t)offsets[i][1];

0 commit comments

Comments
 (0)