Commit graph

4412 commits

Author SHA1 Message Date
Eric House
892d10cd5a cleanup: remove logging; exit on bad board file. 2011-04-18 20:41:17 -07:00
Eric House
205fc3cdfb works now for boards and racks, though not well tested yet. Can read
a board in.  Handles HUP (which happens after every cat to pipe) by
closing and reopening on reader end -- and this works.
2011-04-18 20:26:12 -07:00
Eric House
5f2a942cb6 rename cmdline param 2011-04-18 20:24:59 -07:00
Eric House
099b6a5158 don't modify board listeners. Fixes problems, but may mean there's a
lot of work to do if I ever want to draw the boards I'm loading.
2011-04-18 20:24:36 -07:00
Eric House
2c08baec68 fix to compile in non-DEBUG mode 2011-04-18 06:43:50 -07:00
Eric House
b3ef839189 Don't bother modifying model with rack; just pass it to engine (since
there's no way to un-modify the model to add another rack).  At this
point you can run lots of different racks one after the other and get
dumps for each.  Next: allow setting the board.
2011-04-18 06:42:10 -07:00
Eric House
344c5e1d01 If pipe and rack are both provided, first process rack then listen on
pipes.  Board pipe still ignored but rack pipe is read and once a
cr-terminated buffer's been received processed.
2011-04-18 06:40:31 -07:00
Eric House
e8b58fa4b7 don't require boardPipe 2011-04-18 06:37:52 -07:00
Eric House
ad7dd66566 fix compile: add missing include 2011-04-18 06:37:13 -07:00
Eric House
f185f6d847 missing from prev checkin: fields in structs to track rack and board
passed as params.
2011-04-16 22:40:36 -07:00
Eric House
48e1062399 new API for passing rack to engine in order to print possible moves. 2011-04-16 22:39:58 -07:00
Eric House
b60c12e91c allow CommonPrefs to be null 2011-04-16 22:38:52 -07:00
Eric House
2608787b4e new API and behavior: if a printer proc's provided all moves are
passed to it whether they're worth saving or not.
2011-04-16 22:38:31 -07:00
Eric House
c27538e567 include new file; turn off features this branch doesn't need. 2011-04-16 22:37:40 -07:00
Eric House
6849fe2fb0 new params which if set cause mvcount's main to be called instead of
gtk or curses.
2011-04-16 22:37:18 -07:00
Eric House
a0539a4ff8 test script 2011-04-16 22:36:39 -07:00
Eric House
6602eccb2a new files implementing a glib loop to generate lists of possible moves
from boards and racks written to pipes or passed on commandline.
2011-04-16 22:36:29 -07:00
Eric House
7ef555033f move vtmgr into ulinuxutl so linux variants don't all have to implement it 2011-04-16 22:34:47 -07:00
Eric House
92b255c35d very rough function to load model from textual representation of
board.  It doesn't remove tiles from pool (or even check if they're
available).  Doesn't remove any model state already there.  What's
needed is to reset the game then load the model -- it's a game.h API
rather than just model.h.  I think.
2011-04-13 22:51:27 -07:00
Eric House
3cc105da0b add ability to dump board (model) as text, protected by ifdef that
will likely only get set on Linux.  Uses lower-case to designate
blanks.  For that and maybe string size assumptions is very broken for
non-ascii languages, including Spanish.
2011-04-13 06:45:22 -07:00
Eric House
0474fda127 reverse (back) sense of show-other option 2011-04-13 06:41:49 -07:00
Eric House
baedbdff2c remove logging 2011-04-12 22:17:56 -07:00
Eric House
92ac25ed3f don't require MAX_NUM_PLAYERS==4 2011-04-12 22:17:45 -07:00
Andy2
3c0cf176ef show language as part of game name, not dict as separate line 2011-04-11 06:54:31 -07:00
Andy2
3fb368692c dammit -- proofread those checkins! 2011-04-11 06:52:07 -07:00
eehouse@eehouse.org
819adbe236 Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch 2011-04-11 06:43:00 -07:00
Andy2
c6cd60deef Save and restore per-player dicts; load games that have 'em correctly.
Robots default to BasEnglish dict and humans to CollegeEng.  Add new
per-game default for robot dict.  Still need to deal with language
changes and non-English case in general.
2011-04-11 06:42:17 -07:00
Andy2
96254ad8b5 when opening saved game, notify draw of per-player dicts as well as of
a single game-wide one.
2011-04-11 06:39:31 -07:00
Andy2
092dfdd590 not supposed to be checked in with debugging on 2011-04-11 06:33:31 -07:00
Andy2
2b3398e6a2 pass Context in constructor rather than to methods that need it 2011-04-11 06:31:48 -07:00
Andy2
dc70db5ba4 catch up with API change 2011-04-11 06:16:25 -07:00
Eric House
d6165deb47 anything beyond the 15th char in a bonus-square line is a comment (ignored) 2011-04-10 13:13:45 -07:00
Eric House
26eadb3b99 add commandline option to set bonus square pattern via an external
file.  (Effects only Linux versions.)
2011-04-10 13:04:05 -07:00
Eric House
3310645a12 test files for new bonus-squares-settable feature 2011-04-10 13:02:45 -07:00
Andy2
4272686034 Makefile for new smaller Dutch wordlist 2011-04-08 22:13:31 -07:00
Andy2
97d54c86eb snapshot: track dictName per player in addition to per game. Not yet
used yet; need to pass into jni next.
2011-04-08 06:50:08 -07:00
Andy2
fc4e454d92 bugfix: add background to set of colors restored. 2011-04-08 06:17:35 -07:00
Eric House
c77d3039cc add XP_FREEP. Should be no change in behavior. 2011-04-07 18:07:45 -07:00
Eric House
0ce963336a Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch 2011-04-04 16:16:09 -07:00
Andy2
55221c70b0 fix for new API 2011-04-03 21:51:51 -07:00
Andy2
3b7b4802a9 add ability to specify, track and use separate dictionaries for each
player.  Works for gtk client.  Compiles for Android but there's no UI
yet to specify more than one dict.  Management of dupicate dicts
without duplicating memory -- refcounting -- will be up to the
platforms.
2011-04-01 19:57:10 -07:00
Eric House
b5746eece9 color tray divider 2011-04-01 18:16:04 -07:00
Andy2
d430e158ba add commandline flag for phonies 2011-04-01 17:36:04 -07:00
Andy2
f64257752f fix failure to draw timer in different player color when it has same
value as previous timer, e.g. when you're tapping on players who
haven't had a turn yet.  Note that without the test to prevent drawing
the same timer hints are broken -- device is too busy to make progress.
2011-04-01 07:49:31 -07:00
Andy2
f6be6222a1 draw timer in player color 2011-04-01 07:22:40 -07:00
Andy2
6584c69df1 add and honor preference for board background color (e.g. scoreboard
and tray when no tile present).  This may allow a light-on-dark theme.
2011-04-01 07:17:11 -07:00
Andy2
a64bad0b73 just make network icon the height of scoreboard (not tested on tablet,
the place where this was last changed)
2011-04-01 07:14:04 -07:00
eehouse@eehouse.org
32143d8116 Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch 2011-03-31 18:19:31 -07:00
Andy2
9f76bdede9 hold mutex for slightly shorter time 2011-03-31 18:16:56 -07:00
Eric House
27346cf58b change AIP to remove several stored messages at a time. Will use
later to delete messages after proxy fetches and ACKs them so traffic
isn't repeated.
2011-03-31 18:15:03 -07:00