Skip to content

Commit

Permalink
Update mine-sweeper.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroCho authored Jun 13, 2021
1 parent 3c24d8c commit 5d98659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mine-sweeper.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
const target = event.target; // td 태그겠죠?
const rowIndex = target.parentNode.rowIndex;
const cellIndex = target.cellIndex;
let cellData = data[rowIndex][cellIndex];
const cellData = data[rowIndex][cellIndex];
if (cellData === CODE.NORMAL) { // 닫힌 칸이면
openAround(rowIndex, cellIndex);
} else if (cellData === CODE.MINE) { // 지뢰 칸이면
Expand Down

0 comments on commit 5d98659

Please sign in to comment.