crossword-generator/src/main/java/eu/m724/Main.java
2024-10-04 14:50:40 +02:00

20 lines
No EOL
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!");
}
}