Andy2
bf0582f0aa
make hint buttons en/disabled based on board_canHint() results.
2011-02-01 18:56:37 -08:00
Eric House
4bf613a006
move pipe handling code to where can be shared by curses and gtk -- but use from curses is untested.
2011-01-24 22:20:47 -08:00
Eric House
4ae8c76959
break printed runtime into hours:minutes:seconds
2011-01-24 22:19:02 -08:00
Andy2
825cda9125
new feature for testing proxy: --with-pipe option causes linux client
...
to, instead of putting up UI, blocking on pipe and once it's readable
opening saved game and passing messages into it from pipe then saving
it when done. Works, but requires gtk so far.
2011-01-23 21:52:26 -08:00
Andy2
09b5c44fb4
add option to prevent switching players by tapping scoreboard (to
...
mimic android)
2011-01-21 21:29:28 -08:00
Eric House
c4bf153d36
log reason game ended to game's logfile
2011-01-20 18:10:33 -08:00
Andy2
c9fec737e5
changes, protected by a disabled compile-time flag, to use cairo-based
...
API for drawing instead of now-deprecated gdk ones. Unfortunately
nothing actually draws and I'm putting the debugging off until I have
some time.
2011-01-14 18:15:33 -08:00
Andy2
e7dbac41a6
fix to compile with new gdk that's on ubuntu 10.10. Need to fix the
...
APIs eventually.....
2011-01-12 19:00:20 -08:00
Eric House
b3de3fc91e
add --robot-iq param for testing
2011-01-10 18:18:35 -08:00
Andy2
f48c1cc8b2
add robot-iq param to test new common code and adapt to its API
...
changes; change param from robot-name to robot.
2011-01-10 06:46:09 -08:00
Andy2
639279f865
up the number of moves saved to 32 to match Android.
2011-01-10 06:44:47 -08:00
Andy2
fc23080120
param name has changed
2011-01-10 06:40:42 -08:00
Andy2
7fe5e43963
modify to use new long-only flags
2010-12-21 08:02:51 -08:00
Andy2
63e7084cc8
fix a couple of the new options
2010-12-21 08:01:44 -08:00
Andy2
a7aabdc41b
use getopt_long_only and a table to make adding params easier, fix
...
running out of letters, and force better usage.
2010-12-21 00:58:02 -08:00
Eric House
442b3983cf
highlight during draw where possible because doing it after isn't
...
possible with wide chars -- meaning I haven't figured out how yet.
ncurses documentation is well hidden....
2010-12-13 22:07:25 -08:00
Andy2
4a12f7a96f
Revert "in attempt to work around non-random rand() in jni world, call back"
...
This reverts commit 99c92e779d
.
Conflicts:
xwords4/android/XWords4/jni/utilwrapper.c
2010-12-07 18:43:53 -08:00
Eric House
c4cdc24b78
initial changes to add a header to xwd format so that stuff like
...
number of words can be included. Changed to build dicts and linux to
open them. Android still needs to learn. Also, some of the tools in
dawg/ need to be fixed to read old-format (pre-utf8) .xwd files.
2010-12-05 19:33:10 -08:00
Eric House
9fd4229384
pass host to rq too
2010-12-02 22:34:59 -08:00
Andy2
99c92e779d
in attempt to work around non-random rand() in jni world, call back
...
into the java world by making it a util_ctxt function. Do same on
linux to test. We'll see how it is -- and can back this commit out if
there's no improvement.
2010-12-02 19:02:36 -08:00
Andy2
5bf87b3bea
add function to invoke rq once for all the relayIDs in the set of
...
devices making up a game. Actually using it make the script fail for
some reason and so it's commented out, but it helped to debug the
relay.
2010-11-23 18:12:11 -08:00
Andy2
2127394260
don't allow resignations below a certain point -- which happens to fix
...
divide-by-zero error.
2010-11-22 20:44:28 -08:00
Eric House
a1caaeb183
simulate games being deleted before they're finished
2010-11-18 22:27:46 -08:00
Eric House
7a2d279308
add logging so script can better track what state relay game is in
2010-11-18 22:27:06 -08:00
Eric House
f33466b6db
exit with non-0 on failure so calling script/loop can exit too
2010-11-16 20:29:55 -08:00
Andy2
3b30aff613
use external relayID.sh script
2010-11-15 19:01:38 -08:00
Andy2
58cd93ef6f
given a log file, generates an ID that can be passed with the -d
...
option to relay/rq.
2010-11-15 18:34:56 -08:00
Andy2
a69e2ad8be
add test for device-gone notification by calling rq after gleaning
...
required params from logs. So far testing only after game is over;
need to test mid-game deletion too.
2010-11-15 06:52:35 -08:00
Andy2
9026d5c149
remove obsolete script I keep accidentally invoking
2010-11-12 18:26:01 -08:00
Andy2
fc8cac3b6a
handle new device-gone message by posting timed-out dialog.
2010-11-11 06:43:36 -08:00
Eric House
966616cbc4
throw in the public flags; disallow unset variables
2010-11-09 05:54:23 -08:00
Eric House
2a2f4d4395
been a while since cvs...
2010-11-09 05:53:49 -08:00
Andy2
2d9851902c
replace chat menuitem with chat button enabled using comms_canChat()
2010-11-01 06:55:37 -07:00
Andy2
ab708e4db1
add devOrder (= hostID) to params passed on connect. Make linux apps compile after API change.
2010-10-29 06:32:18 -07:00
Andy2
4cd15a9c6a
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
...
Conflicts:
xwords4/common/comms.c
2010-10-29 05:27:07 -07:00
Eric House
e069a268cd
implement dialog to edit chat text
2010-10-28 21:31:40 -07:00
Andy2
7e0bcee6d2
add room name to callback used when device connects: fix linux to compile
2010-10-28 18:46:07 -07:00
Andy2
5400fad50d
log timeout-dlg messages so there's a record
2010-10-28 18:44:37 -07:00
Eric House
6e843dec6c
make 10997 default relay port
2010-10-22 18:30:19 -07:00
Andy2
b9e3ca212b
turn off glib-dependant checksuming for non-linux builds
2010-10-18 22:08:04 -07:00
Eric House
211e9ded7f
TIMEOUT needs to be bigger for small NGAMES values
2010-10-18 20:18:24 -07:00
Eric House
38ae2faacc
don't nuke bad files along with good
2010-10-14 22:17:34 -07:00
Eric House
c92d59fa53
games can be started with multiple dicts; saving of successful games/logs optional
2010-10-14 05:59:45 -07:00
Eric House
40a7a1b5a3
cleanup; track checked rooms rather than checking each time seen
2010-10-12 19:17:42 -07:00
Eric House
8011eeec2c
cleanup; fix off-by-one bug with NAMES that was breaking runs with
...
four-device games; check before run that there aren't already waiting
games in db.
2010-10-12 05:17:32 -07:00
Eric House
6c5b279946
respect TIMEOUT, and kill all remaining processes before exiting
2010-10-05 20:58:29 -07:00
Eric House
f0b05da131
reduce logging
2010-10-05 20:57:07 -07:00
Andy2
31f3cbc6c8
complete rewrite: use bash's new associative arrays to track games and
...
pids etc. so that a single process can manage starting and stopping
all games. Fixes race conditions where a game would be killed after
finishing but before it'd sent out the message that would allow other
games to finish.
2010-10-04 22:16:58 -07:00
Andy2
a13bb34419
plug memory leak
2010-10-04 22:14:44 -07:00
Eric House
14fd1f9023
add test code for chat feature: display incoming chat and send via
...
menu. Sent message is hard-coded for now; should fix that.
2010-10-03 18:13:48 -07:00
Eric House
a6f5ea5f4a
sync after saving. Seems to improve recovery from TERMs sent by test scripts.
2010-09-28 18:06:05 -07:00
Eric House
1bfdd1978e
move log directory away each time
2010-09-24 20:19:12 -07:00
Andy2
35ff5a7835
exit on logdir being gone before grepping it
2010-09-23 06:41:37 -07:00
Andy2
451ced44ba
cleanup: shorter timeout; set aside games that finish correctly
2010-09-23 06:29:55 -07:00
Eric House
659278448b
changes to work against remote relay
2010-09-22 05:45:40 -07:00
Eric House
076b211cab
tweak to allow to specify host/port for use against remote relay
2010-09-21 20:38:54 -07:00
Eric House
b6ce74be1c
add timeout after which all games are killed
2010-09-20 22:08:51 -07:00
Eric House
c671f2ab05
plug memory leak
2010-09-20 22:07:10 -07:00
Andy2
d199ec5168
account for possibility client apps won't exit on TERM
2010-09-20 05:33:58 -07:00
Andy2
84a26c2c1a
more to ignore
2010-09-20 05:32:17 -07:00
Andy2
00cdbc97d3
Install a no-op TERM handler at first then replace later with one that
...
just exits main loop. Do cleanup/file saving on exit from mainloop.
Fixes occasional crash where TERM came in before we were setup to
cleanup.
2010-09-20 04:55:35 -07:00
Andy2
54512b9e11
put logs in own dir
2010-09-18 07:35:16 -07:00
Andy2
eec07649a6
put logs in own dir; echo every time game ends successfully.
2010-09-18 07:35:02 -07:00
Andy2
7e1066dbcc
vary room names
2010-09-16 22:20:43 -07:00
Andy2
76e7459a6d
various improvements, e.g. random sleeps before and after starting
2010-09-16 18:56:34 -07:00
Andy2
ca6039e890
new test script attempting to mimic real-world usage
2010-09-16 05:39:50 -07:00
Andy2
452e3fc86b
timeout in milliseconds instead of seconds
2010-09-16 04:46:04 -07:00
Andy2
fa50bd00f1
timeout final scores alert
2010-09-16 03:42:57 -07:00
Andy2
0d7165f881
add ability to run gtk from newrelay.sh. Trying to run 50 instances
...
crashes the relay as ACKs take too long to come back.
2010-09-16 01:44:54 -07:00
Eric House
9fc39a55ed
add params to set public-room-related booleans; add timeout option on
...
modal dialogs so gtk version can run unattended.
2010-09-14 21:13:45 -07:00
Andy2
86a1e943ca
make dict settable too
2010-09-12 03:53:39 -07:00
Andy2
8908ca5b1d
ignore new test script's log files
2010-09-11 01:40:05 -07:00
Andy2
1cd2d542f7
new test script
2010-09-11 01:39:20 -07:00
Andy2
d5f2a72227
note that file's out-of-date
2010-09-11 01:28:04 -07:00
Andy2
b3d3673dc9
read the langcode out of dict and into common struct
2010-09-10 01:57:22 -07:00
Andy2
20312144dd
tons of changes, still rough, snapshoted here: a gtk device vs device
...
game works to completion with both signing up as guests (no -s) with
one local and one remote player (identical commandlines.) Not yet
tested: if any signs up as a host, reconnecting rather than
connecting, etc. This is just a snapshot.
2010-09-10 01:30:40 -07:00
Andy2
34a94f23a0
fix error message to not specify host or guest
2010-09-10 01:24:42 -07:00
Andy2
f7c5ff619d
turn off heartbeats
2010-09-10 01:24:03 -07:00
Andy2
2d69d8f2b0
use new crosshairs flags to draw a cross in the middle third of cells
2010-08-11 18:51:09 -07:00
Andy2
6dc21ae7a8
pass (hard-coded) param controlling non-turn board switching
2010-07-17 06:22:42 -07:00
Andy2
e4feef9bbc
reverse sense of -I since hint region unsupported on Android
2010-07-16 18:24:17 -07:00
Andy2
a99e8142b0
Merge branch 'android_branch' into toolbar
...
Conflicts:
xwords4/android/XWords4/jni/Android.mk
xwords4/android/XWords4/jni/xwjni.c
xwords4/android/XWords4/res/values/strings.xml
xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java
xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java
2010-07-16 06:32:32 -07:00
Eric House
e2c663622f
ignore dicts
2010-07-15 18:09:40 -07:00
Andy2
f4e0c5f1ad
turn on crosshairs feature
2010-07-13 06:27:07 -07:00
Andy2
f2674ed27c
XWFEATURE_RAISETILE is off by default
2010-07-12 19:11:42 -07:00
Andy2
de32e514ab
cherry-pick three revisions from toolbar branch ( d1c7d4097c
, f848473c1a
and 6484a2fb9b
) and manually fix conflicts.
2010-07-12 18:48:03 -07:00
Andy2
6484a2fb9b
fix to compile (with or without KEYBOARD_NAV undefined)
2010-07-09 06:50:39 -07:00
Andy2
6b9b97231a
fix to compile with KEYBOARD_NAV undefined
2010-07-09 06:49:32 -07:00
Andy2
4425ff838c
add buttons (gtk) to test new prev-move feature; modify to fit new api
...
(curses).
2010-07-07 05:29:04 -07:00
Andy2
3452666231
use board_canTogglePending to disable button
2010-07-03 11:39:10 -07:00
Andy2
592d99ba80
add new button and handler to test redo of undone pending moves.
2010-07-02 18:53:37 -07:00
Andy2
e150db29ee
use board_canFlip() to prototype disabling flip button when useless.
2010-06-30 20:25:56 -07:00
eehouse@eehouse.org
1fdf1e1a41
Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch
2010-06-17 20:40:13 -07:00
Eric House
afb3f4040a
fix to compile in non-debug mode
2010-06-17 20:35:54 -07:00
Andy2
80aa22b2d1
add common prefs field sortNewTiles and way to set on linux cmdline
2010-06-17 18:10:32 -07:00
Andy2
cb5763312d
can't use svnversion for file name any more
2010-06-07 05:50:01 -07:00
Eric House
08ad0bdfa5
fix assertion failure by passing max size not < actual size
2010-06-05 08:10:02 -07:00
eehouse
f514717428
Change board_zoom to indicate direction only of zoom, not number of
...
cols. When figuring internal dimensions zoom out as needed to meet
maxSize value. This fixes problem where rotating a zoomed portrait
board to landscape leaves cells bigger than they can be made by
zooming, but then the desired zoom has been changed and stored and so
on return to portrait cells are smaller/less zoomed. Need to see if I
can live with that.
2010-06-05 03:40:23 +00:00
eehouse
a80d874e9d
change api for board_zoom and change callers. No effect on java and
...
no behavior change.
2010-06-05 03:39:06 +00:00
eehouse
a2d2b0adbd
quick hack to enable/disable zoom buttons so can debug board.c w/out
...
android.
2010-06-05 03:38:40 +00:00