-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSquare.java
More file actions
37 lines (30 loc) · 728 Bytes
/
Square.java
File metadata and controls
37 lines (30 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package Sokoban;
public class Square {
private static String wall = "#";
private static String emptySquare = " ";
private static String targetSquare = ".";
private static String box = "$"; // '*' box on targetsquare
private static String boxOnTarget = "*";
private static String player = "@";
public static String getWall() {
return wall;
}
public static String getEmptySquare() {
return emptySquare;
}
public static String getTargetSquare() {
return targetSquare;
}
public static String getBox() {
return box;
}
public void setBox(String box) {
Square.box = box;
}
public static String getPlayer() {
return player;
}
public static String getBoxOnTarget() {
return boxOnTarget;
}
}