]> git.cworth.org Git - wordgame/blobdiff - word-game.h
Move the main game logic from grid.c to new word-game.c
[wordgame] / word-game.h
diff --git a/word-game.h b/word-game.h
new file mode 100644 (file)
index 0000000..063d299
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright © 2006 Carl Worth
+ *
+ * This program is free software; you can redistribute it and\/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA."
+ */
+
+#ifndef _WORD_GAME_H_
+#define _WORD_GAME_H_
+
+#include "dict.h"
+
+#define WORD_GAME_MAX_WORD_LENGTH 15
+
+void
+word_game_play (const char     *puzzle,
+               dict_t          *dict,
+               dict_t          *answers,
+               int              time_limit_seconds);
+
+#endif /* _WORD_GAME_H_ */