User Tools

Site Tools


make_a_maze

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
make_a_maze [2019/08/17 11:20] – [3 Ways to Make Walls] frchrismake_a_maze [2019/08/17 11:25] frchris
Line 33: Line 33:
  }  }
 }</code> }</code>
 +  - You can make a long string and send it all at once to the World:<code java>public static void main(String[] args) {
 + String hurdles = "streets 6\n" + 
 + "avenues 10\n" + 
 + "northsouthwalls 8 1 1\n" + 
 + "northsouthwalls 4 1 1\n" + 
 + "northsouthwalls 2 1 1\n" + 
 + "northsouthwalls 1 1 1";
 + World.getWorld(hurdles);
 + World.setVisible();
 +        task();
 + }</code>
make_a_maze.txt · Last modified: 2021/09/05 13:16 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki