]> git.cworth.org Git - wordgame/log
wordgame
17 years agogrid: Generalize to allow either 4x4 or 5x5 grid.
Carl Worth [Fri, 29 Sep 2006 04:02:35 +0000 (21:02 -0700)]
grid: Generalize to allow either 4x4 or 5x5 grid.

17 years agoSplit grid into main program in grid4.c and library functions in grid.c
Carl Worth [Fri, 29 Sep 2006 03:50:09 +0000 (20:50 -0700)]
Split grid into main program in grid4.c and library functions in grid.c

17 years agogrid: Rename "board" to "grid"
Carl Worth [Fri, 29 Sep 2006 03:41:05 +0000 (20:41 -0700)]
grid: Rename "board" to "grid"

17 years agogrid: Don't consider 2-letter words as valid.
Carl Worth [Sun, 24 Sep 2006 04:41:00 +0000 (21:41 -0700)]
grid: Don't consider 2-letter words as valid.

17 years agoDon't print empty found/missed sections
Carl Worth [Sat, 23 Sep 2006 10:56:00 +0000 (03:56 -0700)]
Don't print empty found/missed sections

17 years agoPrefer capital letters in puzzle presentation
Carl Worth [Sat, 23 Sep 2006 10:49:52 +0000 (03:49 -0700)]
Prefer capital letters in puzzle presentation

17 years agoAdd new rack game as well
Carl Worth [Sat, 23 Sep 2006 10:47:48 +0000 (03:47 -0700)]
Add new rack game as well

17 years agoAdd new drill2 game for drilling 2-letter words.
Carl Worth [Sat, 23 Sep 2006 08:32:25 +0000 (01:32 -0700)]
Add new drill2 game for drilling 2-letter words.

17 years agoFix games wiithout time limit. Don't add empty repsonse to history. Don't expect...
Carl Worth [Sat, 23 Sep 2006 08:31:48 +0000 (01:31 -0700)]
Fix games wiithout time limit. Don't add empty repsonse to history. Don't expect puzzle to end in newline.

17 years agoMove the main game logic from grid.c to new word-game.c
Carl Worth [Sat, 23 Sep 2006 07:26:27 +0000 (00:26 -0700)]
Move the main game logic from grid.c to new word-game.c

The idea here is to make it very easy to have many games
which are basically variations of the same theme.

17 years agogrid: Add the ability to print stats at any point in the game.
Carl Worth [Thu, 21 Sep 2006 09:42:09 +0000 (02:42 -0700)]
grid: Add the ability to print stats at any point in the game.

17 years agoPrint board before result summary
Carl Worth [Thu, 21 Sep 2006 09:16:28 +0000 (02:16 -0700)]
Print board before result summary

17 years agoMove IS_WORD flag from trie to dict layer
Carl Worth [Thu, 21 Sep 2006 09:11:58 +0000 (02:11 -0700)]
Move IS_WORD flag from trie to dict layer

17 years agoAdd -Wmissing-prototypes and add a bunch of missing static qualifiers.
Carl Worth [Thu, 21 Sep 2006 09:04:41 +0000 (02:04 -0700)]
Add -Wmissing-prototypes and add a bunch of missing static qualifiers.

17 years agoMove private portions of dict from dict-impl.h back to dict.c
Carl Worth [Thu, 21 Sep 2006 09:02:39 +0000 (02:02 -0700)]
Move private portions of dict from dict-impl.h back to dict.c

This is the punch line in the recent series of commits which removed
trie_t and string_t code from grid.c. We now finally have a nice,
clean dict_t interface for new programs to use.

17 years agoRemove dependence on string_t functions from grid.c
Carl Worth [Thu, 21 Sep 2006 08:55:59 +0000 (01:55 -0700)]
Remove dependence on string_t functions from grid.c

17 years agoAdd printing to dict interface. Breakup grid prints by letter count.
Carl Worth [Thu, 21 Sep 2006 08:48:46 +0000 (01:48 -0700)]
Add printing to dict interface. Breakup grid prints by letter count.

17 years agoComplete the dict layer by adding dict_cursor_t and dict_entry_t
Carl Worth [Thu, 21 Sep 2006 07:36:10 +0000 (00:36 -0700)]
Complete the dict layer by adding dict_cursor_t and dict_entry_t

Some might argue that this is a gratuitous layer and that it
hides the elegance of the trie implementation where pointers
to the entire structure and pointers to a single node are
equivalent.

But I think the elegance is still all there in the implementation,
and I think there's some real benefit in making separate notions
of the entire structure (dict_t) and a pointer to a single element
for navigating (dict_cursor_t) since the operations one might want
to perform on one or the other are entirely separate.

With this change, the only remaining dependence of grid.c on any
trie or TRIE symbols is a single flag definition (which I want to
put entirely in grid.c) and the print functionality.

17 years agoBegin to wean grid.c away from trie and toward dict.
Carl Worth [Thu, 21 Sep 2006 06:59:59 +0000 (23:59 -0700)]
Begin to wean grid.c away from trie and toward dict.

17 years agoEliminate useless layer of dict wrapping trie.
Carl Worth [Thu, 21 Sep 2006 06:51:04 +0000 (23:51 -0700)]
Eliminate useless layer of dict wrapping trie.

17 years agoHide implementation details of dict in dict-impl.h. Add automatic dependency computat...
Carl Worth [Thu, 21 Sep 2006 06:29:22 +0000 (23:29 -0700)]
Hide implementation details of dict in dict-impl.h. Add automatic dependency computation to Makefile.

17 years agoBreak wordgame.c into dict.c and grid.c in preparation for more programs
Carl Worth [Thu, 21 Sep 2006 05:22:25 +0000 (22:22 -0700)]
Break wordgame.c into dict.c and grid.c in preparation for more programs

17 years agoIgnore *.o and *~ files.
Carl Worth [Tue, 19 Sep 2006 08:01:00 +0000 (01:01 -0700)]
Ignore *.o and *~ files.

17 years agoAdd input, verification, and scoring.
Carl Worth [Sun, 17 Sep 2006 09:01:17 +0000 (02:01 -0700)]
Add input, verification, and scoring.

I think the game is basically complete at this point.

17 years agoAdd board and solver.
Carl Worth [Sun, 17 Sep 2006 08:00:10 +0000 (01:00 -0700)]
Add board and solver.

17 years agoInitial comit of wordgame
Carl Worth [Sun, 17 Sep 2006 05:56:29 +0000 (22:56 -0700)]
Initial comit of wordgame