Commit 7ef46f02 authored by nargessalehi98's avatar nargessalehi98

Merge remote-tracking branch 'origin/master'

parents 51f1d0d5 f5e45af1
...@@ -339,21 +339,7 @@ public class GameFrame extends JFrame { ...@@ -339,21 +339,7 @@ public class GameFrame extends JFrame {
} }
} }
public boolean checkWallAdded(int currentX, int currentY) {
String str = currentX + " " + currentY;
for (Wall wall : walls) {
if (wall.toString().equals(str)) return false;
else return true;
}
return true;
}
public void getColor(int x, int y) throws AWTException {
Robot robot = new Robot();
System.out.println(robot.getPixelColor(x, y));
}
/** /**
* Draw prize randomly * Draw prize randomly
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment