Skip to content

Commit

Permalink
Update LightBoard.java
Browse files Browse the repository at this point in the history
  • Loading branch information
chyeung1 authored Apr 30, 2024
1 parent 7985425 commit bf432c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/LightBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public LightBoard(int numRows, int numCols)
for(int i = 0; i < numRows; i++)
for(int j = 0; j < numCols; j++)
if(Math.random() <= 0.4)
lights[r][c] = true;
lights[i][j] = true;
}

/** Evaluates a light in row index row and column index col and returns a status
Expand Down

0 comments on commit bf432c1

Please sign in to comment.