diff --git a/MVC/minesweeper/index.html b/MVC/minesweeper/index.html index 70b59b9..146144e 100644 --- a/MVC/minesweeper/index.html +++ b/MVC/minesweeper/index.html @@ -131,12 +131,12 @@ modelCell.isOpen = true; showMatrix(); } - function countBomb(row, column){ + function countBomb(row, column) { if (row < 0 || row >= size || column < 0 || column >= size) return 0; return matrixModel.rows[row].cells[column].isBomb } - function openBlankCells(rowIndex, columnIndex){ + function openBlankCells(rowIndex, columnIndex) { if (rowIndex < 0 || rowIndex >= size || columnIndex < 0 || columnIndex >= size) return; var modelCell = matrixModel.rows[rowIndex].cells[columnIndex]; if (!modelCell.isBomb && !modelCell.isOpen && modelCell.bombsNearBy === 0) { diff --git a/oppgaver/uke5/2randomEqual.html b/oppgaver/uke5/2randomEqual.html new file mode 100644 index 0000000..320c202 --- /dev/null +++ b/oppgaver/uke5/2randomEqual.html @@ -0,0 +1,32 @@ + + + +
+ + +