diff --git a/Makefile b/Makefile index 332549c..0468b9a 100755 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ SRCS = uk/org/mafoo/wordsearch/GridFactory.java \ uk/org/mafoo/wordsearch/Bounds.java \ uk/org/mafoo/wordsearch/CouldNotPlaceWordException.java \ uk/org/mafoo/wordsearch/Direction.java \ - uk/org/mafoo/wordsearch/DistributedRandomNumberGenerator.java + uk/org/mafoo/wordsearch/DistributedRandomNumberGenerator.java \ + uk/org/mafoo/wordsearch/Modes.java OBJS = ${SRCS:.java=.class} diff --git a/src/dir.o b/src/dir.o new file mode 100644 index 0000000..b5c48b4 Binary files /dev/null and b/src/dir.o differ diff --git a/src/grid.o b/src/grid.o new file mode 100644 index 0000000..41aa031 Binary files /dev/null and b/src/grid.o differ diff --git a/src/rnd.o b/src/rnd.o new file mode 100644 index 0000000..9003e0b Binary files /dev/null and b/src/rnd.o differ diff --git a/src/wordsearch b/src/wordsearch new file mode 100755 index 0000000..779b599 Binary files /dev/null and b/src/wordsearch differ diff --git a/uk/org/mafoo/wordsearch/GridFactory.java b/uk/org/mafoo/wordsearch/GridFactory.java index 280f099..5b65f2a 100755 --- a/uk/org/mafoo/wordsearch/GridFactory.java +++ b/uk/org/mafoo/wordsearch/GridFactory.java @@ -161,7 +161,7 @@ public class GridFactory { public static char[][] makeGrid(List words, int height, int width, Modes mode) { char[][] grid = new char[height][width]; - bool simple = (mode == Modes.SIMPLE || mode == Modes.CROSSWORD); + boolean simple = (mode == Modes.SIMPLE || mode == Modes.CROSSWORD); // Place words at random? for (String word : words) { diff --git a/uk/org/mafoo/wordsearch/Modes.java b/uk/org/mafoo/wordsearch/Modes.java index 13cdeb4..65e2b49 100644 --- a/uk/org/mafoo/wordsearch/Modes.java +++ b/uk/org/mafoo/wordsearch/Modes.java @@ -3,5 +3,5 @@ package uk.org.mafoo.wordsearch; enum Modes { NORMAL, SIMPLE, - CROSSWORD, + CROSSWORD; } \ No newline at end of file diff --git a/uk/org/mafoo/wordsearch/Store.java b/uk/org/mafoo/wordsearch/Store.java new file mode 100644 index 0000000..41fde25 --- /dev/null +++ b/uk/org/mafoo/wordsearch/Store.java @@ -0,0 +1,22 @@ +package uk.org.mafoo.wordsearch; + +import java.sql.*; + + +class Store { + + Connection conn = null; + + protected Store(String dbfile) { + try { + Class.forName("org.sqlite.JDBC"); + conn = DriverManager.getConnection("jdbc:sqlite:" + dbfile); + } catch ( Exception e ) { + System.err.println( e.getClass().getName() + ": " + e.getMessage() ); + System.exit(1); + } + } + + protected storeInstance() + +} \ No newline at end of file