added a method to the Universe class
This commit is contained in:
parent
a01ed1abaa
commit
6f117982d0
3 changed files with 34 additions and 8 deletions
|
@ -3,7 +3,14 @@
|
|||
public class AppLaser {
|
||||
|
||||
public static void main(String [] args) {
|
||||
Universe universe = new Universe(20, 10);
|
||||
Universe universe = new Universe(20, 10, 2, 3, 12);
|
||||
|
||||
universe.addObstacle(4, 4);
|
||||
universe.addObstacle(5, 4);
|
||||
universe.addObstacle(6, 4);
|
||||
universe.addObstacle(7, 4);
|
||||
universe.addObstacle(8, 4);
|
||||
universe.addObstacle(9, 4);
|
||||
|
||||
universe.print();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue