Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 409c2f0

Browse files
Chapter 07 section 02 codes updated.
1 parent 7928fdd commit 409c2f0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎07-Mine-Sweeper/02-Mine-Sweeper-Basics/src/AlgoVisualizer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ public class AlgoVisualizer {
77

88
private MineSweeperData data;
99
private AlgoFrame frame;
10-
private static final int d[][] = {{-1,0},{0,1},{1,0},{0,-1}};
1110

1211
public AlgoVisualizer(int N, int M, int mineNumber){
1312

‎07-Mine-Sweeper/02-Mine-Sweeper-Basics/src/MineSweeperData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class MineSweeperData {
44
public static final String flagImageURL = "resources/flag.png";
55
public static final String mineImageURL = "resources/mine.png";
66
public static String numberImageURL(int num){
7-
if(num < 0 || num >= 8)
7+
if(num < 0 || num > 8)
88
throw new IllegalArgumentException("No such a number image!");
99
return "resources/" + num + ".png";
1010
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /