20 lines
726 B
Java
20 lines
726 B
Java
|
package eu.m724;
|
||
|
|
||
|
public class Main {
|
||
|
public static void main(String[] args) throws CrosswordBuilder.SizeMismatchException {
|
||
|
CrosswordBuilder builder = new CrosswordBuilder(20, 20, "ardour")
|
||
|
.addWord("cat", "Furry feline pet")
|
||
|
.addWord("sun", "Bright star in our sky")
|
||
|
.addWord("book", "Bound pages with a story")
|
||
|
.addWord("tree", "Woody plant with branches")
|
||
|
.addWord("blue", "Color of a clear sky")
|
||
|
.addWord("door", "Entrance to a room")
|
||
|
.generate();
|
||
|
|
||
|
Crossword crossword = builder.build();
|
||
|
|
||
|
System.out.println(crossword.render());
|
||
|
|
||
|
System.out.println("Hello world!");
|
||
|
}
|
||
|
}
|