3 import java.io.FileOutputStream;
5 import de.lathanda.eos.base.MutableColor;
6 import de.lathanda.eos.base.util.Direction;
7 import de.lathanda.eos.game.tools.Labyrinth;
8 import de.lathanda.eos.robot.World;
9 import de.lathanda.eos.robot.exceptions.RobotException;
13 private static final int WIDTH = 20;
14 private static final int HEIGHT = 20;
15 private static final int SEED = 42;
17 private static final String FILENAME =
"labyrinth.eow";
18 public static void main(String[] args) {
25 for(
int x = 0; x < 2*WIDTH+1; x++) {
26 for(
int y = 0; y < 2*HEIGHT+1; y++) {
38 try (FileOutputStream file =
new FileOutputStream(FILENAME)){
40 }
catch (Exception e) {
41 System.out.println(
"Speichern gescheitert wegen "+e.getMessage());
static final MutableColor YELLOW
static final MutableColor DARK_GRAY
void setStoneColor(MutableColor c)
void setMark(int x, int y, MutableColor c)
void save(OutputStream targetStream)
void setRock(int x, int y, int z)
void toggleEntrance(int x, int y, int z, Direction d)
static void main(String[] args)