Commit graph

352 commits

Author SHA1 Message Date
Eric House
1d35b7e7e0 Squashed commit of the following:
commit 6ed0462040d6fd45bf43c431df5db4702630da4e
Author: Eric House <eehouse@eehouse.org>
Date:   Thu Jan 30 15:55:29 2020 -0800

    script meant to be run in UserLAnd on android

commit 07b603f4abde00f1cb4face7f27d996fed1b0258
Author: Eric House <eehouse@eehouse.org>
Date:   Thu Jan 30 15:01:00 2020 -0800

    fix gtk invite scenario

    required --name param, apparently.

commit 13201c4cedbf6564516ae850956b2f3155def0b1
Merge: a301491fb 752e3ff3e
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jan 30 12:38:09 2020 -0800

    Merge branch 'android_branch' into duplicate_mode

commit a301491fb5d7b2e09f4b932b16c0a82d1429cb64
Merge: 5401a4bbe d6cf1d2f9
Author: Eric House <xwords@eehouse.org>
Date:   Sat Jan 11 20:45:26 2020 -0800

    Merge branch 'android_branch' into duplicate_mode

commit 5401a4bbe54cdad6adbfa8f9ba8a1c0112ff4dbe
Merge: a92275173 9406297c0
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jan 10 09:54:30 2020 -0800

    Merge branch 'android_branch' into duplicate_mode

commit a922751730be87ae1ea7f6b2ee4263e8b14faabf
Author: Eric House <xwords@eehouse.org>
Date:   Sun Dec 29 16:39:51 2019 -0800

    move game list item pending counter below "dup"

commit 53ca75a56ba9ecde917a5c8c91deaf0afdb04ea0
Merge: 658e4ef92 15239d4a6
Author: Eric House <xwords@eehouse.org>
Date:   Sun Dec 29 16:34:07 2019 -0800

    Merge branch 'android_branch' into duplicate_mode

commit 658e4ef92277d0a1b5c7840883edfab55251d99f
Author: Eric House <xwords@eehouse.org>
Date:   Tue Dec 10 20:33:24 2019 -0800

    move BT UUID into build.gradle

    And add a new UUID for the duplicate build so it doesn't try to talk to
    the xw4d variant when both are installed.

commit a3141c86204bcc134a6fea1e8e6d1cedc743ee13
Author: Eric House <xwords@eehouse.org>
Date:   Thu Nov 21 18:52:11 2019 -0800

    modify icon for easier identification

commit db23f45ac075e8bc50c56b7fb9808a7e270f5625
Author: Eric House <xwords@eehouse.org>
Date:   Thu Nov 21 18:38:18 2019 -0800

    change name of key

    I want to force the apps already out there to generate a correct
    key. This has the lowest impact.

commit 91bc3f6ac406b2fda3426bb363c8e59c3973b75f
Author: Eric House <xwords@eehouse.org>
Date:   Thu Nov 21 18:25:08 2019 -0800

    use the right generated file

    Duh. Used the wrong app/project so FCM couldn't work for the new Dup app
    variant. Now it does.

commit d4ef6f12681bae4437e907e47fbdf1b35bf10d98
Author: Eric House <xwords@eehouse.org>
Date:   Mon Nov 18 09:26:46 2019 -0800

    add comms_getPending(), and refactor to implement

commit 60870e43373a8b73f3541529031791e1457aaa15
Author: Eric House <eehouse@eehouse.org>
Date:   Wed Nov 13 12:30:07 2019 -0800

    first cut at python version of dawg2dict

    Perl version doesn't work and I don't remember enough of the language to
    fix it.

commit b9547d1ec49f1d9d95b3b76b2bcc6ef0d088c531
Author: Eric House <eehouse@eehouse.org>
Date:   Wed Nov 13 12:30:57 2019 -0800

    fix comment

commit 442d219aeab0acfd3713e065f3c46cf0b5d40012
Author: Eric House <eehouse@eehouse.org>
Date:   Tue Nov 12 09:08:08 2019 -0800

    check for undefined variable

commit 247415e18d0b764d3cdb52e9eedeac4b183428c5
Merge: 94c2a7e15 bd3b3e75e
Author: Eric House <eehouse@eehouse.org>
Date:   Tue Nov 19 20:12:18 2019 -0800

    Merge branch 'duplicate_mode' of ssh://maidu2/home/eehouse/src/git/repos/xwords into duplicate_mode

commit 94c2a7e151eeb81bb29589db120a08ffdb5e78fb
Merge: 514e33900 a161abc1b
Author: Eric House <eehouse@eehouse.org>
Date:   Tue Nov 5 21:13:23 2019 -0800

    Merge remote-tracking branch 'tmp-eeh/duplicate_mode' into duplicate_mode

commit a161abc1b2c1c0e8ce76ac71e9feed9d567a3a73
Author: Eric House <xwords@eehouse.org>
Date:   Tue Nov 5 15:56:26 2019 -0800

    make a new CrossDup variant

    It's too much trouble having versions of CrossDbg that aren't compatible.

commit 514e33900fad2695dac89371995ea197a3c9fa4b
Merge: 2d5ec2dfc c69ec5250
Author: Eric House <eehouse@eehouse.org>
Date:   Tue Nov 5 08:43:52 2019 -0800

    Merge branch 'android_branch' into duplicate_mode

commit 2d5ec2dfcdf2788baee2fadd69c8cbb7ac3cafd8
Author: Eric House <eehouse@eehouse.org>
Date:   Sun Nov 3 12:34:48 2019 +0000

    log some hashing stuff (to share while debugging)

commit 564165ed2aef2cd2e893a1552dfb94ca61734f0d
Author: Eric House <eehouse@eehouse.org>
Date:   Sun Nov 3 11:23:40 2019 +0000

    remove unnecessary logging

commit 0111db1951e40ff039cd276d1a77dc31d380ce32
Author: Eric House <eehouse@eehouse.org>
Date:   Sun Nov 3 11:22:27 2019 +0000

    fix log_hex format alignment

commit c7e92680c2624c2d45bade42fddb3334348ce8fc
Author: Eric House <eehouse@eehouse.org>
Date:   Sun Nov 3 10:23:17 2019 +0000

    toward making non-dupe stack hashes match

    Changing the format meant that old builds and new couldn't play non-dupe
    games together, which clearly sucks. There's still a problem, but this
    is part of the fix.

commit fb185eca355840423b561e3237a6529ade409850
Merge: a6df962b1 37ac29e65
Author: Eric House <eehouse@eehouse.org>
Date:   Sun Nov 3 09:43:57 2019 +0000

    Merge branch 'android_branch' into duplicate_mode

commit a6df962b1046ff191453a617afbeee272ce3dc66
Author: Eric House <eehouse@eehouse.org>
Date:   Thu Oct 24 21:28:35 2019 +0200

    cleanup (not dup-specific)

commit f8e31d20ae5399db98589540fff432dc053ec633
Author: Eric House <eehouse@eehouse.org>
Date:   Tue Oct 22 13:38:37 2019 +0200

    use https now to fix broken updating

commit 0add4e050235e9aed5e4f841497c02b80113dbdd
Author: Eric House <eehouse@eehouse.org>
Date:   Tue Sep 10 16:39:19 2019 +0300

    let cells be taller than wide too (take 2)

commit 897d4453702a4c820fb99e60ca0be1bca44d0f42
Author: Eric House <eehouse@eehouse.org>
Date:   Tue Sep 10 16:30:14 2019 +0300

    cleanup (not dup-specific)

commit 2973ffb908fc8a966082870dae348cdc74e646c7
Author: Eric House <eehouse@eehouse.org>
Date:   Thu Aug 29 23:08:36 2019 +0300

    assert that valid message is handled

    I suspect that messages are being dropped (in server) after being
    recorded (in comms), causing the game to stall forever. So add an
    assertion that it's not happening. Haven't seen it yet in a few hundred
    games, but it'll be nice to be more confident.

commit ae6aca71245c934ffe1cb8ba4dc12a0bcbfd1dda
Author: Eric House <eehouse@eehouse.org>
Date:   Mon Aug 26 18:35:12 2019 +0300

    remove x86 from release builds

    I either remove it or add the 64-bit abi. Since it's only there to run
    in the emulator let's just leave it in for DEBUG builds. If I need to
    run a release build in the emulator I can add it back.

commit 4d96f05f2ffea6ca3e9b7dd1776c81fbc0a1350b
Author: Eric House <eehouse@eehouse.org>
Date:   Mon Aug 26 18:14:01 2019 +0300

    arm means two ABIs now

commit f00e8c1258ed62fcf74c7f4db856fb8366d3f348
Author: Eric House <eehouse@eehouse.org>
Date:   Mon Aug 26 18:13:40 2019 +0300

    fix release build warnings

commit 86a7de8c493eb57012531e4953bfde8de38bbb97
Author: Eric House <eehouse@eehouse.org>
Date:   Mon Aug 26 08:23:52 2019 +0300

    up API version to 28 (required soon)

commit 3382823b254cd7f2861362a895a7db483e253781
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jul 21 12:08:33 2019 -0700

    wip: add clear 'X' to [un]pause msg editor

commit f0c0663b85bdcb6f36f50464a06ab5fb6041e738
Author: Eric House <xwords@eehouse.org>
Date:   Sat Jul 13 10:11:17 2019 -0700

    wip: stop using IMPORTANCE_HIGH: too obnoxious

commit 280838b680d10f0e5d280257e21c2eab66dbcec9
Author: Eric House <xwords@eehouse.org>
Date:   Sat Jul 13 10:10:53 2019 -0700

    wip: move misplaced assert

commit de004c956f2804264320adf4e197ed7274092f44
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 12 12:06:10 2019 -0700

    wip: store the damned playerNum already

    And remove mistaken minus-sign (typo?)

commit 17434fcb0c35f5e9489a6b01fd40e4908d4547e6
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 12 11:47:27 2019 -0700

    wip: use rowid for notification id where possible

commit 5b20ba2f8c4d17118a709cdec556ea38b3f4199d
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 12 10:53:50 2019 -0700

    wip: be smarter about looking for timer changes

    Add a dutil callback for when timer value changes. In it, pass the new
    value to DupeModeTimer. In that, don't bother servicing until the saved
    value matches the stored/expected value (because there's otherwise yet
    another save coming.)

commit e98d4154224e2013389962d22476bc571d721aa5
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 12 10:48:59 2019 -0700

    wip: add unique notification id generator

    I'm tired of trying to keep rowid-based notifications from trampling
    each other. Now they can be unique per-channel.

commit fd94a0f0d23b4658c93bfb7793e658387bcbbcce
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jul 11 23:55:54 2019 -0700

    wip: auto-pause when nobody moves

    If moves all come in 0 and the timer's running, assume nobody's actually
    playing and pause the game. While at it added [un]pause to game history
    and made history entries include malloc()'d message, requiring a
    free(). Lots of changes, with at least one glitch that games sometimes
    hang after the autopause; and gameslist shows it as nobody's turn though
    when opened the game knows it's a player's turn.

commit dfb6d2c2574fa63d416c7c800e7dbe30b0925143
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jul 8 20:40:11 2019 -0700

    wip: cleanup/refactor

commit d4a37e5a03e874a4d1e43e72183eb73a8c0f70f5
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jul 8 20:23:58 2019 -0700

    wip: run dupemodetimer more than once

    Failure to reset a variable meant I never processed more than one timer
    firing. Oops.

commit a19979ae7f71da4ba8d478c9a5a5ec4bc70b4c96
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 20:03:57 2019 -0700

    wip: zero timer value when move's been made

    Used to actually set the timer value to 0 when move was made, and
    DupeModeTimer expected that. So zero the stored value before returning
    it IFF move's been made already.

commit 7c52ce2a6a08db3b4e2a1bc32f71b073227f23ce
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 19:48:29 2019 -0700

    wip: add pause button to notification

    Make it easier to discover pausibility by adding pause button to
    always-on notification. Implemented by opening the game and then within
    it the Pause confirm alert, which required passing a boolean Extra
    through from the launch intent to the one passed into BoardDelegate.

commit 9f82c2f2a3d710f6ad52b1b4f570625e2c19e277
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 14:31:43 2019 -0700

    wip: fix to redraw timer when only turnDone changes

commit dee10cf35521018805621e3e2b4b58f2c2dee686
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 13:36:06 2019 -0700

    wip: fix compile

commit b1e55307ccd8a849afddc27f9214eea738eb25d7
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 11:43:13 2019 -0700

    wip: show timer when paused, and dim when turn done

commit 289080dcfa19e36ea0aa6bd204b61f81872f2b38
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jul 1 21:01:09 2019 -0700

    wip: save separate excuses for pause and unpause

commit 0d427df8f45cc97e385886058b0b456a4e4ca495
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jul 1 21:00:20 2019 -0700

    wip: invoke pause stuff via tap on timer

commit 6ef72472426c61573249e17a4842247114ecd432
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jun 30 20:39:17 2019 -0700

    wip: pass name with pause info for better notification

commit 429baf6edb41a6821103a499b88406de9eb13673
Author: Eric House <xwords@eehouse.org>
Date:   Sat Jun 29 11:50:40 2019 -0700

    wip: improve pause/unpause confirm dialog

commit 9a302b137d56966513393abb4ca3169274ad72e3
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 21:45:17 2019 -0700

    wip: pass just the message. Let client package it.

commit 6c9025e347a1fb97b90778db6563cd22a5aaa2b8
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 21:41:24 2019 -0700

    wip: trigger notifications etc on pause change

commit dabe79c58c1a6ba1c098688dd2b6b764c543e98b
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 21:18:13 2019 -0700

    wip: missing files

commit 352584858fa106b2094e9a393a9b3959a90511b9
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 21:15:58 2019 -0700

    wip: pass explanatory message with [un]pause

commit a99976713b5f35ee61fc9629fb2df9ac11af9098
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 15:28:55 2019 -0700

    set dbname in build.gradle

commit c0b3be342ad9d89b43ba00d77ae91ad09f8ff211
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 10:00:25 2019 -0700

    fix crash on initial install

    uninitialized variable

commit 3656f1d938c61ebf9ac780905f1a084cb4b024f1
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 27 13:35:30 2019 -0700

    wip: fix too-frequent dupe-game checking

    Do it all on a a background thread, and never process a game that was
    added for processing while being processed. Fixes re-opening because we
    just changed it, but may miss changes that matter.

commit a977b8fa51a8e8f9a469bc6fbf305364a29ef8ac
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 27 11:10:14 2019 -0700

    wip: progress on timers

    Mostly fixing DupeModeTimer to do less on main thread.

commit cb4cdc1c8221dfc94e9c9ef889d5d1b099b44049
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 27 07:14:13 2019 -0700

    use macro for callbacks (as elsewhere)

commit 997de250c8d8e0a2de0b949258b06b8998bc1086
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 22:34:34 2019 -0700

    wip: transmit [un]pause to other devices

commit 970fc8c9dbf3883211c1934f3f999149532609a8
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 17:15:55 2019 -0700

    wip: more timer tweaks

commit b67b836028216345ef8d6d157bdaf9f59f698df4
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 15:01:04 2019 -0700

    wip: fix assignment to wrong variable

commit 48cafcec1471e064413ade48ed79b51f1e7fb922
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 14:41:50 2019 -0700

    wip: wire up [un]pause menus in Android board

commit 0476f1b21f3bd30e3ae970dc85a72a7eac67d5d9
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 11:09:19 2019 -0700

    wip: pause/unpause without communication

commit 71815b2f17f0ca354eb6dd4dd12f65d309723db1
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 10:56:09 2019 -0700

    wip: start adding [un]pause support

commit bc4f04c724f51668ace3db17703aa1446fad7405
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 10:07:24 2019 -0700

    wip: fix to work when timer not set

commit 2b271abbb487aa8c5fa7f792d898c72f5d69e270
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 09:53:29 2019 -0700

    wip: show tiles face-up in history for dup-mode

    No point in hiding them when everybody has the same.

commit 945b8527847af20ca955fb313b7bf49887e4e012
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 09:47:19 2019 -0700

    wip: don't draw paused (0:00) timer in duplicate mode

    Required passing in a new boolean

commit 6229fb88302d6da8d432a743955f3dc54d871bda
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 25 19:16:40 2019 -0700

    wip: adding timers

    interpret the existing timer value as per-move, counting down to 0. When the timer fires, commit and send moves for all local players.
    On Android, show notifications for games where a timer's running and nothing's been committed yet. Very rough, and somehow broke the
    python test script for duplicate games.

commit 7892c42c69d2985b39c9fd50053fad3d5f03ba5a
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 25 16:40:14 2019 -0700

    fix crash closing app when timers enabled

commit 1fbf78931b57ff4d92381a3b7f7e39770cb96ae0
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 24 12:23:33 2019 -0700

    assert thread is same for map and unmap

    It'll be a while before I'm comfortable moving this to main branch

commit 046b2e598ae8368eed6e68b5fbaeba69d0416b96
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 24 12:15:40 2019 -0700

    add refcount on thread->env mapping

    Just as a safeguard to ensure I'm not removing something I'll want
    later. There appears to be no attempt at this point to use a stacked
    protocol -- attempts to add what's already there are just dropped -- so
    actual refcounting isn't working now. But if I double-remove I want to know.

commit 5c44e3cd2df87be904db6a7689c59be4fcf2696b
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 24 09:32:36 2019 -0700

    fix breakage from backport and rebase

commit 4476bf10f222af90547e935d7eabd69fff0be427
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 24 09:13:17 2019 -0700

    add timer to gtk's new-game dialog

commit fb50963e4314f85e8013717e4435671cb66b91df
Author: Eric House <eehouse@eehouse.org>
Date:   Sat Jun 22 20:29:26 2019 -0700

    tweak text

commit 4d7fc28b0e0cc4c0e2c877401eb170a4764059f5
Author: Eric House <eehouse@eehouse.org>
Date:   Sat Jun 22 08:56:27 2019 -0700

    make all config spinners use same styles

    One had a label. How all do, and styles make them the same.

commit 5f064b31be8d8dfff0ada1d34acf2792ac6c721d
Author: Eric House <eehouse@eehouse.org>
Date:   Sat Jun 22 08:23:35 2019 -0700

    make label-plus-timer-setting single-line

commit 38a271578dda87a025acd28c065a9748d88e7246
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 16:32:57 2019 -0700

    wip: specify smaller size to avoid wrap on some phones

    No idea if this will be enough. Or if just saying "one-line" would work
    better.

commit 8e71bfbc011747b7738fd12e437fd73da7a7b01c
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 15:08:51 2019 -0700

    wip: fix false dup-mode tag in games list

    The layouts are reused, so it needs to be hidden for the non-dupe case
    in case it represented a dup-mode game before and the tag was revealed.

commit 2186d72e04df901b53a6d578c24a945b01245f52
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 14:50:15 2019 -0700

    fix listing of Hex language (not dup-specific)

commit a9afebea7493438681e3ebcc366f38542ecf4691
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 11:48:07 2019 -0700

    wip: fix div-by-zero when all games are duplicate

commit 1925ff93cd1019f4daa6c9b86222dbf9f763d876
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 10:30:45 2019 -0700

    wip: store scores in as many bits as largest requires

    breaks storage format!

commit 8fb2678e8e937990ad63569b39c5c12a54a9089b
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 20:26:50 2019 -0700

    wip: reduce scores correctly in dup-mode after undo

commit d1d72ce840eef5a1f9c0e3118660a9498e790848
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 18:26:15 2019 -0700

    wip: fix tiles not being sorted after undo

    I'm doing this in the model where there's no setting to prevent
    sorting. Figure undo's a violent enough change nobody will care.

commit a8a36e8dfa1f61805932cabf607cf6f01b18a2d3
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 17:49:00 2019 -0700

    wip: inval tray when copying from DUP player's

    Fix failure to correctly draw current tray contents after replacement
    based on winning dup. move.

commit 8b2f877f01cf954392841ee3e1eb8b75ce05b646
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 17:13:17 2019 -0700

    wip: mark gameslist items with "dup" if in dup mode

commit 11f680fcce14a0303f50d685dde741b2d57241be
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 10:55:40 2019 -0700

    wip: correct move count display in dup-mode case

commit 84bced651a5765ce5eacef90d653e1807a5e5a1b
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 11 15:29:30 2019 -0700

    wip: fix crashes using word-lookup

    Assertions about dup mode and pending plays being legal words were wrong
    given how commitTurn() was used building a temp model inside
    model_listWordsThrough().

commit 66b39ca29616dd5f7ae948185b6d16f2d207e45b
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jun 9 14:43:28 2019 -0700

    print average scores at end of run

    Should really be done separately by number of players, as non-dup games
    with more players will have lower scores as each has fewer turns.

commit 3f722d974eaa77883f169974bca18e14b89dd829
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jun 9 10:30:26 2019 -0700

    wip: notifiy turn change listeners in DUP case

    Fixes occasional failure to update Exipration display in game list items
    when a move's made.

commit 8fd13b8fc5040db0c5b631e5f97a31db08d7d053
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 22:16:23 2019 -0700

    wip: don't cache variable locally

    For some reason it's not set on K's phone. This is safer: what's always
    worked, and it's late....

commit 6b67c4a59ca42a28d263f22ef334fe0d40fbab80
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 19:07:11 2019 -0700

    wip: move status strings into resources

commit 6779c31f21e26abcbf0364322db1021ad3d82985
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 18:43:56 2019 -0700

    wip: add status alerts for dup state transitions

    So users know what's up, add not-again alerts when server gets moves but
    can't yet act and when client sends moves.

commit 88770a9dbbe80d2d6364cd8402f4cc2e2f2ec367
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 13:03:54 2019 -0700

    wip: create local copy of inDuplicateMode var

commit d157f114b1e1fb91da015bb6238c70c61b58b154
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 12:38:00 2019 -0700

    wip: fix misplaced assert

commit 2f7230472f846ca29c791c9799a070415271e940
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 12:08:39 2019 -0700

    wip: fix non-dup-mode scores and enable undo

commit 23a11e65e218762408315bbba1ef3d0b0f6808f1
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 11:16:05 2019 -0700

    wip: list all players in a tie

commit 250bc52a044b89f8c39f2bf9a29cd0ce58b2d1a5
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 10:58:40 2019 -0700

    wip: better last-move explanations

    on android and linux. Required passing an array through the JNI which in
    turn encouraged some refactoring.

commit 9cddab3be0164028a30997b5528bfc3334488dae
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 10:22:21 2019 -0700

    wip: use only one ASSIGN in duplicate mode

    They're otherwise all the same, and the other types all have
    playerNum == DUP_PLAYER, so let's be consistent.

commit df50f81db9eace30884613ef4d9ec1c10904f1d9
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 08:47:59 2019 -0700

    wip: call assertSorted() before scoring

    the place that was the original problem

commit ccb026b82ebe600a697f36f67ccab250ac49b32c
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 08:43:31 2019 -0700

    wip: fix so MoveInfo tiles always in order

    Display of last-played move didn't work for duplicate case because
    scoring assumes sorted tiles. So always sort, and assert sorted when
    writing to and reading from stream.

commit a0967512f60354afd15ef6877f48bcc891a1d6d2
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 08:58:44 2019 -0700

    wip: script progress shows dup- vs non-dup-mode

commit 947594afb0b1c681743fbe274d58ded302f1414a
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 08:18:19 2019 -0700

    wip: allow mix of dup- and non-dup games in test script

commit a433cb230008a6cea8236c56a3d04c97a7702a80
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 08:03:35 2019 -0700

    wip: work around misunderstood NPE (not dup-only)

commit a54a015983890338772de5043bb242aa8ebeb202
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 08:03:14 2019 -0700

    wip: cleanup and add debug/logging util

commit 28c13b678f36c4c4678b1467e68daf3297db0464
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 07:58:14 2019 -0700

    wip: don't exit engine when checking tray in dup mode

    Android tends to abort the search because it has UI events
    unprocessed. I'm hoping it's generally so quick that this is ok. If not,
    I'll need to be more clever, e.g. adding an option to end the search
    after finding only one move rather than the best move.

commit c807cb91d25a789fd3ce0e739ad864b6e84631e6
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 07:47:04 2019 -0700

    wip: fix broken compile

commit 960dacdd5d7882f0b9cca9b5ad3e884bb04b9873
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 07:18:24 2019 -0700

    wip: fix pool having too many tiles when engine busy

    Bad loop structure meant I exited only after replacing in pool tiles I
    was actually keeping.

commit 8ff5a5b27d319b55730688dc6e4bfd9a7eef59db
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 19:31:34 2019 -0700

    wip: don't include number of players figuring pass count

    otherwise we wait too long for duplicate mode game to end

commit 19677f2bb6a2eabb80d99d55087621f483cd3e07
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 19:30:41 2019 -0700

    wip: log tile sets in and out

commit 9a0993ec30cb109c2171f141341f3e926ff801f9
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 19:29:32 2019 -0700

    wip: no longer generate trades randomly

commit 2fc37b1f94c966669119e9f7b31ce8fa2d2971e0
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 19:19:06 2019 -0700

    wip: figure bits-per-tile correctly

commit 295579d06a512d0a0012e725f42994e4b78436fa
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 08:52:49 2019 -0700

    wip: flag dup-mode games and nuke all on demand

    Add a bit to a summaries table field so dup-mode games can be
    identified. Add disabled code to nuke them all without attempting to
    open, something that still needs doing on occasion.

commit ddb73d9ccf66fd516ff10394cddb8f99956d99d5
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 3 17:39:21 2019 -0700

    wip: get rid of new move types

    It's enough to know whether we're in duplicate mode at runtime, as
    confirmed by the assertions from the last commit.

commit 70918077c13eebc1651a607da326eaba97fc6813
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 3 12:10:35 2019 -0700

    wip: assert new move types are redundant

    Looks like I don't need them: I can know whether I'm in duplicate mode
    or not and interpret them appropriately. This commit is to check; next
    will remove the types.

commit de677d7276be4a78e1819920403a93fe8ca36a13
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 3 11:23:38 2019 -0700

    wip: don't dup-trade when no tiles left in pool

    and don't count dup-trade as a pass when deciding whether to end game.

commit 6914822fcb1256afb84933c0937eeecd0d906aa6
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 3 11:00:38 2019 -0700

    wip: trade when nobody can move

    Add a new move type, duplicate-trade. Generate and transmit one of those
    when none of the submitted moves scores any points. And for testing,
    randomly do it in DEBUG builds occasionally (should likely be a param
    passed by the test script instead.) Still generates a very few
    assertions run from the script, but worth snapshotting still.

commit 683fb31f2288b3767d1b8495c9ed71030556b018
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jun 2 10:09:26 2019 -0700

    add prefs settings to unhide dup mode and for new-game default

    For now, it should be hard to stumble onto it, so add a debug-only
    setting so that all options are hidden by default. And so if you are
    using it it's easier to use, add a new-game default setting (itself
    hidden at first via the above.) Eventually I suspect it'll be easier to
    find for French-localized devices.

commit e7816d7587b582311a79e253c55e916f32c84c4d
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 29 10:03:13 2019 -0700

    cleanup

commit 78518d2af7c7787d46025ddee85401bdc75d7be7
Author: Eric House <xwords@eehouse.org>
Date:   Tue May 28 06:54:17 2019 -0700

    fix obscure NPE (not duplicate-specific)

commit d4f9bb2be51bd57fe87e1d5157e9e6eb408df528
Author: Eric House <xwords@eehouse.org>
Date:   Tue May 28 06:44:57 2019 -0700

    wip: fix NPE setting title too early

commit d02a2bf9b27544b8102025f599754d03797addb7
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 20:12:14 2019 -0700

    wip: fix crashes and stalls script found

    I was using a non-local player's model as scratch then failing to fully
    update it before loading the winning tray in.

commit 4e611150248cb4b1d20281e73e68b0f44a6fca1e
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 14:38:12 2019 -0700

    wip: add strings where test script can find them for dup games

commit 0685d64f9c7e17735bb651722b99f645aefe8ce8
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 14:36:44 2019 -0700

    wip: fix assert when no tiles in move

commit e02436fd7135b7c9fb799f1f8a1c91e0d7abb5ea
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 08:55:03 2019 -0700

    wip: mark duplicate games a bit

    Add "(dup.)" to game title and new string to the commit confirm alert.

commit ef32d09205d126338046f45aec34d44853523a9f
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 08:51:39 2019 -0700

    wip: fix tray-check bugs

    Needed to run the engine against the tray of the winning move, even if
    it wasn't local. Engines haven't existed for non-local players before so
    some assertions weren't happy.

commit f0a03d41602037150c9f9872a7b6a5e1cd44e038
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 08:11:13 2019 -0700

    fix to compile on Android

commit c442c92ab18e021743636e09956230fc78eb45fc
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 06:53:55 2019 -0700

    fix breakage from too-eager refactoring

commit eff9e3aee484d8c2159b6c59d5fd4a734dc5a77f
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 26 19:51:21 2019 -0700

    wip: refetch new tiles if current tray doesn't allow any moves

commit 47be80c68382dc1ac7c6a648f82e597bd0dde0df
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 25 13:34:24 2019 -0700

    wip: add logging trying to catch stall

commit ccdb3a9d21d0d0a7de2fd3588dcb64754f747ad0
Author: Eric House <xwords@eehouse.org>
Date:   Fri May 24 06:54:04 2019 -0700

    wip: include dupMode in BT and SMS invitations

    Add it to the json and url read/write code so other invitation types
    also work.

commit 959895981505b9a5e58d9212e76bfb7c6f491f34
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 23 20:34:33 2019 -0700

    add option to have all robots at full smartness

    as a test of duplicate, makes all scores the same

commit bd520de6f83d7dd718cd5a50fe16d5414ce63654
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 23 20:33:55 2019 -0700

    wip: fix method-name parens assert printf

commit d8196e9fc252d488b2d42527a734ace9926517cd
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 23 20:33:37 2019 -0700

    wip: remove some logging

commit 4fa394f342b000d7ee44b42a513ea97f9f2d414e
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 22 19:43:52 2019 -0700

    wip: add ability to run test app in duplicate mode

    Doesn't come close to passing :-(

commit cb920e34ee9e3ab3000c89370d722a6a48abfdf5
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 22 16:47:20 2019 -0700

    wip: report scores when move over (sorted by score)

    Still need to made the strings localizable.

commit c3e72140a1966f53b165ff43d8b9e59951e65c94
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 22 13:57:45 2019 -0700

    wip: fix problems opening old-version move stacks

    Since the stack's not rewritten each time it's saved (moves stay in the
    stream) the versioning scheme can't work. Instead use an extra bit to
    store whether the stack uses the new format requiring an extra bit for
    moveType.

commit b635c176820916b344657e9146fb28b998adb9f5
Author: Eric House <xwords@eehouse.org>
Date:   Tue May 21 18:48:31 2019 -0700

    wip: fix end-of-game message and initial turn assignment

commit 8bccd4e482fd48307ed22f5d9bc36966667f0084
Author: Eric House <xwords@eehouse.org>
Date:   Tue May 21 18:10:48 2019 -0700

    wip: UI doesn't need to always show the same turn

    Figure what "turn" it is based on what candidate moves have been
    reported locally. Fixes Android not showing games as needing attention
    on all devices.

commit 909ce7ed7ab13317cbc51288ed71e97a4571414c
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 20 21:37:22 2019 -0700

    wip cleanup

commit 6c5f4847a463a4d2022384677402d83ee1f87d1a
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 20 20:26:08 2019 -0700

    wip: split method

commit 4d489591eb6fc6233d413cc906f84fe3e099b701
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 20 19:49:33 2019 -0700

    wip: update scoreboard and end game correctly

commit 4c3aaa741bb903c8c1c74c4156ea626c4a0d3986
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 21:15:56 2019 -0700

    wip: don't allow trade in dup mode

commit ea7b3495080fafe91722d2ce51299bf49e3119de
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 21:09:30 2019 -0700

    wip: get building/limping along on Android

    parity with GTK, basically.

commit 72d493588d518868955296fd59033fd6dc763268
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 17:57:45 2019 -0700

    wip: break point tie based on word length

commit 08101b4e468efdd2b4b17f85a1492526993be978
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 17:12:28 2019 -0700

    wip: fix networked games

commit d83094bfe750560b868d1915d4375a65120817da
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 16:28:46 2019 -0700

    wip: fix problems updating model

    Simplest test case now works: two-player one-device game in duplicate
    mode can make a bunch of turns. Save/restore of game works. All on gtk;
    Android likely doesn't build.

commit 8f7a00f1eecba537061fc8e22f3eb44591152cfa
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 18 10:38:37 2019 -0700

    wip: tweak commit of dup move

commit b3212792311e69b2253832aedb052b6cc3c86eb9
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 18 10:23:08 2019 -0700

    wip: correctly update board with dup move

    and fix crash when move stack created with wrong version

commit 449f6f6ff4402ddc9581822ecbde9bb51120db85
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 18 09:10:31 2019 -0700

    wip: update scores correctly when loading stack

commit 0c83965fe8fba7c7aea7407ce6dfb37bc0add39f
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 18 08:40:29 2019 -0700

    wip: add dupe-mode move to move stack

    Add new move entry type including a move and new tiles plus the scores
    for all players. Reflect move and tiles when loading from file. Next:
    figure out what to do with the scores.

commit 78edef74a2c19e4d513fea9da0c6ede4cc146b87
Author: Eric House <xwords@eehouse.org>
Date:   Fri May 17 10:20:18 2019 -0700

    wip: identify highest-scoring word

commit ac7c0b0fb543576e2121dbbeaf17bb3a13cb19c6
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 16 21:34:04 2019 -0700

    wip: transmit client dupe-mode moves to server

    and fix failure to get dupe flag into server on client side

commit de85dfaa2f484a1a02cd6997a7e732daa28de16b
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 16 19:54:41 2019 -0700

    wip: invitation works to assign tiles

    Include in nli sent across that we're in DUPLICATE mode. When sending
    and receiving assigned tiles in that mode, send only one set and remove
    from pool only once. But: games don't always connect, which might or not
    be due to these changes. Next: handle commit by sending the move but not
    a new tray.

commit dcb9e8f14d14749f81c63e08eed8418719555fb8
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 16 19:46:25 2019 -0700

    wip: remove excessive logging

commit 67c62d84f1dfe2bc11463316697a0c62d449e429
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 16 08:15:20 2019 -0700

    wip: accumulate local turns

    Track whether players have committed turns yet. Once all have
    notice (but do nothing yet).

commit d8dcb43dbc396c0f8fdb9a890b958f168137c2ad
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 15 22:24:04 2019 -0700

    wip scoreboard shows it can be multiple players' turns

    modify how scoreboard is drawn. next: let players commit until all are
    done

commit 97ecc7bd81bac2a0832dfa01df3d7130547a1829
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 15 20:05:25 2019 -0700

    wip: add duplicate checkbox and assign same tiles to all

    next: make it everybody's turn until it's nobody's. This is all in
    standalone mode for now.

commit bd3b3e75ef6a0bbf4de20cbdc1aaabb9adae2a9c
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jul 21 12:08:33 2019 -0700

    wip: add clear 'X' to [un]pause msg editor

commit a0999d6af44d126fb450b220b49a743a3c7e439c
Author: Eric House <xwords@eehouse.org>
Date:   Sat Jul 13 10:11:17 2019 -0700

    wip: stop using IMPORTANCE_HIGH: too obnoxious

commit 3a7fd5758ffdaabf4b867f423db2d5558d1f10c0
Author: Eric House <xwords@eehouse.org>
Date:   Sat Jul 13 10:10:53 2019 -0700

    wip: move misplaced assert

commit d769855259daf340446e8c69b8091eec1cbc5d73
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 12 12:06:10 2019 -0700

    wip: store the damned playerNum already

    And remove mistaken minus-sign (typo?)

commit 9622a575863393668ac91a6233e5962ca413c8f8
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 12 11:47:27 2019 -0700

    wip: use rowid for notification id where possible

commit 699b76db2683f7ee9c96adb6d00e9ad623275fba
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 12 10:53:50 2019 -0700

    wip: be smarter about looking for timer changes

    Add a dutil callback for when timer value changes. In it, pass the new
    value to DupeModeTimer. In that, don't bother servicing until the saved
    value matches the stored/expected value (because there's otherwise yet
    another save coming.)

commit 25d3bc0a78557957c1cc4f1c727e581491bc969c
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 12 10:48:59 2019 -0700

    wip: add unique notification id generator

    I'm tired of trying to keep rowid-based notifications from trampling
    each other. Now they can be unique per-channel.

commit 5b2f692adaddf1cfe58f073fa4ea4e39f31b7785
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jul 11 23:55:54 2019 -0700

    wip: auto-pause when nobody moves

    If moves all come in 0 and the timer's running, assume nobody's actually
    playing and pause the game. While at it added [un]pause to game history
    and made history entries include malloc()'d message, requiring a
    free(). Lots of changes, with at least one glitch that games sometimes
    hang after the autopause; and gameslist shows it as nobody's turn though
    when opened the game knows it's a player's turn.

commit 1db4b1a3221f077cb797cc8e1c9a0468a9bc7f1f
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jul 8 20:40:11 2019 -0700

    wip: cleanup/refactor

commit 873dbf3e7c46dbe9bf0cd7163788f9c0f35b32ea
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jul 8 20:23:58 2019 -0700

    wip: run dupemodetimer more than once

    Failure to reset a variable meant I never processed more than one timer
    firing. Oops.

commit 0f13c4b95caa23ef19eae9454d034d5a881a7e20
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 20:03:57 2019 -0700

    wip: zero timer value when move's been made

    Used to actually set the timer value to 0 when move was made, and
    DupeModeTimer expected that. So zero the stored value before returning
    it IFF move's been made already.

commit 83761f9228828fa0ff51bd7595059912e76414bc
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 19:48:29 2019 -0700

    wip: add pause button to notification

    Make it easier to discover pausibility by adding pause button to
    always-on notification. Implemented by opening the game and then within
    it the Pause confirm alert, which required passing a boolean Extra
    through from the launch intent to the one passed into BoardDelegate.

commit 6e543978b1ab132b8f95ae756301555f6267b037
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 14:31:43 2019 -0700

    wip: fix to redraw timer when only turnDone changes

commit b3c79de07e9eeb2bbaed04ff9a46b91fb927fe3f
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 13:36:06 2019 -0700

    wip: fix compile

commit d293864cff6d20197703ccadaa9f75b91e634004
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jul 5 11:43:13 2019 -0700

    wip: show timer when paused, and dim when turn done

commit 9c25d5a79e39fad12054be0be3f3d33a569270a9
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jul 1 21:01:09 2019 -0700

    wip: save separate excuses for pause and unpause

commit 9dfc00f4ff462a949ac453680ce160d436da430e
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jul 1 21:00:20 2019 -0700

    wip: invoke pause stuff via tap on timer

commit e80d443cf9583ab388a5b077dbb37d0ce024e2c1
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jun 30 20:39:17 2019 -0700

    wip: pass name with pause info for better notification

commit 511b319643482ef459b793cc37c6fefd585c18c1
Author: Eric House <xwords@eehouse.org>
Date:   Sat Jun 29 11:50:40 2019 -0700

    wip: improve pause/unpause confirm dialog

commit e63fc004c830f96ad87d29d26de55f9429a098e1
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 21:45:17 2019 -0700

    wip: pass just the message. Let client package it.

commit dc79c7698a3b810bb94c4c6b732aa1e470953887
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 21:41:24 2019 -0700

    wip: trigger notifications etc on pause change

commit 6654053dd9640b1c79830cfd2ccff6ee117d8bd6
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 21:18:13 2019 -0700

    wip: missing files

commit 9579766643a0b939b0ebccd6b94fc1cace3f1a1a
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 21:15:58 2019 -0700

    wip: pass explanatory message with [un]pause

commit 1b91ad47910e4f4e0e2bba06d72097e4e83013a5
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 15:28:55 2019 -0700

    set dbname in build.gradle

commit c6c8ace0404f4a39214f294d3a85634d0db2080c
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 28 10:00:25 2019 -0700

    fix crash on initial install

    uninitialized variable

commit b0bcec10a896532d3439b4045e3406c1f361477b
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 27 13:35:30 2019 -0700

    wip: fix too-frequent dupe-game checking

    Do it all on a a background thread, and never process a game that was
    added for processing while being processed. Fixes re-opening because we
    just changed it, but may miss changes that matter.

commit 5f327d2eeabd8761691439c77db74f45514a0bf9
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 27 11:10:14 2019 -0700

    wip: progress on timers

    Mostly fixing DupeModeTimer to do less on main thread.

commit 847773f19b803626e56e4ee44a5f77ba225a487b
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 27 07:14:13 2019 -0700

    use macro for callbacks (as elsewhere)

commit ff6a7430db4bb01e77b1f32efde801872995d709
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 22:34:34 2019 -0700

    wip: transmit [un]pause to other devices

commit e8138431307763ffee8c8cba49cc00f6c36b3fa8
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 17:15:55 2019 -0700

    wip: more timer tweaks

commit 7431f5b4ddb16ff3b646409f8a0c62c43d864810
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 15:01:04 2019 -0700

    wip: fix assignment to wrong variable

commit fc703b6072d2dd7066e5bc9f6708b5b5d9aa11f9
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 14:41:50 2019 -0700

    wip: wire up [un]pause menus in Android board

commit 0e53fbfcbe5bf8e4a1253e45a12b9b5a5fe1e5ad
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 11:09:19 2019 -0700

    wip: pause/unpause without communication

commit 571200bebedb7df5f7193996a0db46ba6b05d1b6
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 10:56:09 2019 -0700

    wip: start adding [un]pause support

commit dbe25a2a09beae6241cd59b322f29e532094a7ae
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 10:07:24 2019 -0700

    wip: fix to work when timer not set

commit 6a58736eae4948c4245f7154e9e54a53ab2a39e9
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 09:53:29 2019 -0700

    wip: show tiles face-up in history for dup-mode

    No point in hiding them when everybody has the same.

commit 0b80a9ddfdcefdade0cf882cd4cd5b21ee4a5825
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 26 09:47:19 2019 -0700

    wip: don't draw paused (0:00) timer in duplicate mode

    Required passing in a new boolean

commit 1e94137e670bef7ecda614d3b513c6c065245704
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 25 19:16:40 2019 -0700

    wip: adding timers

    interpret the existing timer value as per-move, counting down to 0. When the timer fires, commit and send moves for all local players.
    On Android, show notifications for games where a timer's running and nothing's been committed yet. Very rough, and somehow broke the
    python test script for duplicate games.

commit 61b81b820afe4e7c30234d0c6de428fcc41e2a70
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 25 16:40:14 2019 -0700

    fix crash closing app when timers enabled

commit d456444e33bdcf5b151e250a8afd536f52f0d362
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 24 12:23:33 2019 -0700

    assert thread is same for map and unmap

    It'll be a while before I'm comfortable moving this to main branch

commit c35de13cbaeb001d743bbfa00f6a95c16eb3a6fc
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 24 12:15:40 2019 -0700

    add refcount on thread->env mapping

    Just as a safeguard to ensure I'm not removing something I'll want
    later. There appears to be no attempt at this point to use a stacked
    protocol -- attempts to add what's already there are just dropped -- so
    actual refcounting isn't working now. But if I double-remove I want to know.

commit a43b811c3343c1b393c707197a59dc3c7c52d7ac
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 24 09:32:36 2019 -0700

    fix breakage from backport and rebase

commit 5dd2cf2a6209a6902ad7697b8831dfb998af42a8
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 24 09:13:17 2019 -0700

    add timer to gtk's new-game dialog

commit 6fbb0522d65d11752da8170511e78775fc5c16ea
Author: Eric House <eehouse@eehouse.org>
Date:   Sat Jun 22 20:29:26 2019 -0700

    tweak text

commit 9a4bf15f39e50eca71b489a771294b06787eba88
Author: Eric House <eehouse@eehouse.org>
Date:   Sat Jun 22 08:56:27 2019 -0700

    make all config spinners use same styles

    One had a label. How all do, and styles make them the same.

commit c9bf3b9d66cf4bf57fd8ab2a8311165a22ccfc5d
Author: Eric House <eehouse@eehouse.org>
Date:   Sat Jun 22 08:23:35 2019 -0700

    make label-plus-timer-setting single-line

commit ab47ad09612da9b5cad6e450ffedb3c51357431a
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 16:32:57 2019 -0700

    wip: specify smaller size to avoid wrap on some phones

    No idea if this will be enough. Or if just saying "one-line" would work
    better.

commit 18f60f13c11c5c87bb1cb89a34430bce4372f937
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 15:08:51 2019 -0700

    wip: fix false dup-mode tag in games list

    The layouts are reused, so it needs to be hidden for the non-dupe case
    in case it represented a dup-mode game before and the tag was revealed.

commit 4c77db51f3ab618375d1b4b709d4ce5492ce7e5f
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 14:50:15 2019 -0700

    fix listing of Hex language (not dup-specific)

commit df2006279f5203b28fae46f2cae5a99f83e80652
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 11:48:07 2019 -0700

    wip: fix div-by-zero when all games are duplicate

commit a13d2c630b0b5a78048663b77051e29855ad012d
Author: Eric House <xwords@eehouse.org>
Date:   Fri Jun 14 10:30:45 2019 -0700

    wip: store scores in as many bits as largest requires

    breaks storage format!

commit e1acb19d7de8b9f65f5727cd7b415dc6a05e5a1e
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 20:26:50 2019 -0700

    wip: reduce scores correctly in dup-mode after undo

commit c8783625b72b2469013db4ffbe33ce6f2bc129c0
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 18:26:15 2019 -0700

    wip: fix tiles not being sorted after undo

    I'm doing this in the model where there's no setting to prevent
    sorting. Figure undo's a violent enough change nobody will care.

commit 2a5f76e86a357194c46d7f41bf64fd8d9c238b62
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 17:49:00 2019 -0700

    wip: inval tray when copying from DUP player's

    Fix failure to correctly draw current tray contents after replacement
    based on winning dup. move.

commit d93ae745a011b22dd1970039577537a0b0162103
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 17:13:17 2019 -0700

    wip: mark gameslist items with "dup" if in dup mode

commit 5ab01db8227f16641f18b2dbe09decc5f1a10476
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 13 10:55:40 2019 -0700

    wip: correct move count display in dup-mode case

commit bcff165e45eb0d347303b581a882118a0c1efbf8
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 11 15:29:30 2019 -0700

    wip: fix crashes using word-lookup

    Assertions about dup mode and pending plays being legal words were wrong
    given how commitTurn() was used building a temp model inside
    model_listWordsThrough().

commit a3eb0723987b6abf36f5bfa9b1536ee13fd12ccc
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jun 9 14:43:28 2019 -0700

    print average scores at end of run

    Should really be done separately by number of players, as non-dup games
    with more players will have lower scores as each has fewer turns.

commit f764362e435d644ee1014e22aba7075452c54558
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jun 9 10:30:26 2019 -0700

    wip: notifiy turn change listeners in DUP case

    Fixes occasional failure to update Exipration display in game list items
    when a move's made.

commit 4cb91d72259d7b3190205cc93974ad1052c8d883
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 22:16:23 2019 -0700

    wip: don't cache variable locally

    For some reason it's not set on K's phone. This is safer: what's always
    worked, and it's late....

commit d78fee9a43cf0f6019f6a9494edc4a0573f6317d
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 19:07:11 2019 -0700

    wip: move status strings into resources

commit f943a8ca280da3dce0b843a14fbed307814347e0
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 18:43:56 2019 -0700

    wip: add status alerts for dup state transitions

    So users know what's up, add not-again alerts when server gets moves but
    can't yet act and when client sends moves.

commit 61bc587d656b47b194306ae9c6f10dc6a50878c7
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 13:03:54 2019 -0700

    wip: create local copy of inDuplicateMode var

commit 5b37bb2cd45ca281f410487d63a328eb80b518d9
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 12:38:00 2019 -0700

    wip: fix misplaced assert

commit dddcd5c073f4ee55d2367728381ef400faa6bc0e
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 12:08:39 2019 -0700

    wip: fix non-dup-mode scores and enable undo

commit 09848e3a85635238df9ebc7b0f2c480c4f2db02a
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 11:16:05 2019 -0700

    wip: list all players in a tie

commit 9d87087924fec2d0262ecc1ee2d3bb7d82d3c4c2
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 10:58:40 2019 -0700

    wip: better last-move explanations

    on android and linux. Required passing an array through the JNI which in
    turn encouraged some refactoring.

commit 57b8c65de433cd694d978726257dda07d5918cef
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 10:22:21 2019 -0700

    wip: use only one ASSIGN in duplicate mode

    They're otherwise all the same, and the other types all have
    playerNum == DUP_PLAYER, so let's be consistent.

commit 0d50b662a1290a5e58ee6229e1f9ad41de1eb5f3
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 08:47:59 2019 -0700

    wip: call assertSorted() before scoring

    the place that was the original problem

commit 78fc93e19658eb015ebb546e6bc3190a470bc2e5
Author: Eric House <xwords@eehouse.org>
Date:   Thu Jun 6 08:43:31 2019 -0700

    wip: fix so MoveInfo tiles always in order

    Display of last-played move didn't work for duplicate case because
    scoring assumes sorted tiles. So always sort, and assert sorted when
    writing to and reading from stream.

commit 882c7ff9d60a5d5c79c6c35b54d9d84d19912d4e
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 08:58:44 2019 -0700

    wip: script progress shows dup- vs non-dup-mode

commit 7b4bf585d4bdc3d77d858289f9c043552a41d027
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 08:18:19 2019 -0700

    wip: allow mix of dup- and non-dup games in test script

commit 874b2bafc2b466f2bd2086a239942a350b93f1dd
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 08:03:35 2019 -0700

    wip: work around misunderstood NPE (not dup-only)

commit 185a6d374fc49a955bbea90e086fd1570d023627
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 08:03:14 2019 -0700

    wip: cleanup and add debug/logging util

commit a2a8dfcbd30d53bdac170e057605a683f3f30323
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 07:58:14 2019 -0700

    wip: don't exit engine when checking tray in dup mode

    Android tends to abort the search because it has UI events
    unprocessed. I'm hoping it's generally so quick that this is ok. If not,
    I'll need to be more clever, e.g. adding an option to end the search
    after finding only one move rather than the best move.

commit 44c7528995327c9653dc69f60986f18442e232de
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 07:47:04 2019 -0700

    wip: fix broken compile

commit 1bbc1607914993565c86d8b86da78b490e08d3f4
Author: Eric House <xwords@eehouse.org>
Date:   Wed Jun 5 07:18:24 2019 -0700

    wip: fix pool having too many tiles when engine busy

    Bad loop structure meant I exited only after replacing in pool tiles I
    was actually keeping.

commit 021f5afc8d4a871d42aa619be02b80fab7e2415c
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 19:31:34 2019 -0700

    wip: don't include number of players figuring pass count

    otherwise we wait too long for duplicate mode game to end

commit 1294b3bb0a4272e0bfb87f81ef5f9fe957d78b2e
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 19:30:41 2019 -0700

    wip: log tile sets in and out

commit a01c50405e1edcfba4bb2fc89f4df0801226f5d5
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 19:29:32 2019 -0700

    wip: no longer generate trades randomly

commit aeae0164c3c7e940430d72c000e2a66baf5f1dd5
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 19:19:06 2019 -0700

    wip: figure bits-per-tile correctly

commit cb3bb8d55b9cae577941ab8707a91566f42a14f9
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 09:12:52 2019 -0700

    log service stalls that don't trigger notification

    I'm seeing RelayService never get scheduled, and need to see something
    in the logs.

commit a8e0b43d004b2556ab4b22ab52be0ad7e3ddb45d
Author: Eric House <xwords@eehouse.org>
Date:   Tue Jun 4 08:52:49 2019 -0700

    wip: flag dup-mode games and nuke all on demand

    Add a bit to a summaries table field so dup-mode games can be
    identified. Add disabled code to nuke them all without attempting to
    open, something that still needs doing on occasion.

commit 4e4bcd5d4590d0b429405a6a0a5de10f1a29689d
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 3 17:39:21 2019 -0700

    wip: get rid of new move types

    It's enough to know whether we're in duplicate mode at runtime, as
    confirmed by the assertions from the last commit.

commit 7343ba3de1941a2b9d8fcd196506c9f62acbfe91
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 3 12:10:35 2019 -0700

    wip: assert new move types are redundant

    Looks like I don't need them: I can know whether I'm in duplicate mode
    or not and interpret them appropriately. This commit is to check; next
    will remove the types.

commit 07ae965094c720ebb71b2dd6c5e9a6facf854888
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 3 11:23:38 2019 -0700

    wip: don't dup-trade when no tiles left in pool

    and don't count dup-trade as a pass when deciding whether to end game.

commit b8cbfd0149f9c8e9854ae15dddc8328832f7d8a0
Author: Eric House <xwords@eehouse.org>
Date:   Mon Jun 3 11:00:38 2019 -0700

    wip: trade when nobody can move

    Add a new move type, duplicate-trade. Generate and transmit one of those
    when none of the submitted moves scores any points. And for testing,
    randomly do it in DEBUG builds occasionally (should likely be a param
    passed by the test script instead.) Still generates a very few
    assertions run from the script, but worth snapshotting still.

commit 41f0258619a1f3ab72abd3d908d0b6cf2f999978
Author: Eric House <xwords@eehouse.org>
Date:   Sun Jun 2 10:09:26 2019 -0700

    add prefs settings to unhide dup mode and for new-game default

    For now, it should be hard to stumble onto it, so add a debug-only
    setting so that all options are hidden by default. And so if you are
    using it it's easier to use, add a new-game default setting (itself
    hidden at first via the above.) Eventually I suspect it'll be easier to
    find for French-localized devices.

commit e152b407005e837eec4fe1f6ad552f55c157d877
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 29 10:03:13 2019 -0700

    cleanup

commit 4439d8c3ea786b64dde554a25c62379bbea8347d
Author: Eric House <xwords@eehouse.org>
Date:   Tue May 28 06:54:17 2019 -0700

    fix obscure NPE (not duplicate-specific)

commit 4c5b1fc25d74f0ab40072f0d1987234e78b05569
Author: Eric House <xwords@eehouse.org>
Date:   Tue May 28 06:44:57 2019 -0700

    wip: fix NPE setting title too early

commit cc06a3df70157e3fd4c5b7f12d3adc8cfb87aa1c
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 20:12:14 2019 -0700

    wip: fix crashes and stalls script found

    I was using a non-local player's model as scratch then failing to fully
    update it before loading the winning tray in.

commit 7010cd60af70965ac106072ca2eed91536c746d5
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 14:38:12 2019 -0700

    wip: add strings where test script can find them for dup games

commit 1349d300b74168e2cae3c564fcbcec6fb28264c3
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 14:36:44 2019 -0700

    wip: fix assert when no tiles in move

commit 8a789ef9c32d4d90ef7f054dc8d863902edc34eb
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 08:55:03 2019 -0700

    wip: mark duplicate games a bit

    Add "(dup.)" to game title and new string to the commit confirm alert.

commit 4ac09cf8daf8752106d1edf9a90e0f12fe3bc80a
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 08:51:39 2019 -0700

    wip: fix tray-check bugs

    Needed to run the engine against the tray of the winning move, even if
    it wasn't local. Engines haven't existed for non-local players before so
    some assertions weren't happy.

commit 99abae4d19383afe25a9fbe57960ec0f8530f49e
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 08:11:13 2019 -0700

    fix to compile on Android

commit 22a58978dd1a6d851a5f92557928d5418d42a57a
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 27 06:53:55 2019 -0700

    fix breakage from too-eager refactoring

commit d2f1a8d7c2c90e94bc00b170d69faa6f9b3e69e1
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 26 19:51:21 2019 -0700

    wip: refetch new tiles if current tray doesn't allow any moves

commit c4c916c9f96231d9a2fd085df1aef8b54237ab4f
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 25 13:34:24 2019 -0700

    wip: add logging trying to catch stall

commit 8355236bdc5b34e5a58594dfec982cf0cd3daa8a
Author: Eric House <xwords@eehouse.org>
Date:   Fri May 24 06:54:04 2019 -0700

    wip: include dupMode in BT and SMS invitations

    Add it to the json and url read/write code so other invitation types
    also work.

commit b8fb1d4c89285e0516aa55f830954dac16dbe7cc
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 23 20:34:33 2019 -0700

    add option to have all robots at full smartness

    as a test of duplicate, makes all scores the same

commit e653ad39284c5ba071e74a521a91d5bb21fbe320
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 23 20:33:55 2019 -0700

    wip: fix method-name parens assert printf

commit fca3c06ff3007c3095128b27040d87e82eddf79b
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 23 20:33:37 2019 -0700

    wip: remove some logging

commit 1a89b105d34ba0af2048b7693a3fdbeda7783070
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 22 19:43:52 2019 -0700

    wip: add ability to run test app in duplicate mode

    Doesn't come close to passing :-(

commit 308baf2a8b2cbdc1212cff17811ee6f750c67099
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 22 16:47:20 2019 -0700

    wip: report scores when move over (sorted by score)

    Still need to made the strings localizable.

commit 2db4bdceaba990f34dd32afb16f9d4bd04fd8cdc
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 22 13:57:45 2019 -0700

    wip: fix problems opening old-version move stacks

    Since the stack's not rewritten each time it's saved (moves stay in the
    stream) the versioning scheme can't work. Instead use an extra bit to
    store whether the stack uses the new format requiring an extra bit for
    moveType.

commit 1df8e1754e35b784be2070c8416c6f5038fa65a7
Author: Eric House <xwords@eehouse.org>
Date:   Tue May 21 18:48:31 2019 -0700

    wip: fix end-of-game message and initial turn assignment

commit 4548435b36e9f9165b66832b93707a0b7e00f876
Author: Eric House <xwords@eehouse.org>
Date:   Tue May 21 18:10:48 2019 -0700

    wip: UI doesn't need to always show the same turn

    Figure what "turn" it is based on what candidate moves have been
    reported locally. Fixes Android not showing games as needing attention
    on all devices.

commit 4a93f4b4528eabcef41bdfd67517bba4d1479407
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 20 21:37:22 2019 -0700

    wip cleanup

commit f8184783bc9a8914310c39c54084e5fe492694a7
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 20 20:26:08 2019 -0700

    wip: split method

commit 0d7d68737843017ecbc08dba87d881dabf7098ff
Author: Eric House <xwords@eehouse.org>
Date:   Mon May 20 19:49:33 2019 -0700

    wip: update scoreboard and end game correctly

commit d5d95424314b2e18c95f0a43eaa1759b3a7c6b5a
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 21:15:56 2019 -0700

    wip: don't allow trade in dup mode

commit 8b102c0a8e5c0b39cc5b29aea16a5985a0e402c6
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 21:09:30 2019 -0700

    wip: get building/limping along on Android

    parity with GTK, basically.

commit 16cfc6b0bb1bb01ee801ccec2116eac94e16fdab
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 17:57:45 2019 -0700

    wip: break point tie based on word length

commit 66dce87d98dce21d7616cc79c32ee88e8fbbb537
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 17:12:28 2019 -0700

    wip: fix networked games

commit 33ba891082a9d59a90115357194841f8fa0532f8
Author: Eric House <xwords@eehouse.org>
Date:   Sun May 19 16:28:46 2019 -0700

    wip: fix problems updating model

    Simplest test case now works: two-player one-device game in duplicate
    mode can make a bunch of turns. Save/restore of game works. All on gtk;
    Android likely doesn't build.

commit 33080c1014e40af0858a1d89168ffd52d1efd400
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 18 10:38:37 2019 -0700

    wip: tweak commit of dup move

commit 65f06a216441624f811d1abb2e31955fb979b5c5
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 18 10:23:08 2019 -0700

    wip: correctly update board with dup move

    and fix crash when move stack created with wrong version

commit 4be132686b64cf6c49e541ad7df76bb7b753b3ce
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 18 09:10:31 2019 -0700

    wip: update scores correctly when loading stack

commit 107f7b2a6708c1129f8fd67dc2deecb9e19a0606
Author: Eric House <xwords@eehouse.org>
Date:   Sat May 18 08:40:29 2019 -0700

    wip: add dupe-mode move to move stack

    Add new move entry type including a move and new tiles plus the scores
    for all players. Reflect move and tiles when loading from file. Next:
    figure out what to do with the scores.

commit 6c05fe87d3ddae3e74edf0621df40dd083c9bebb
Author: Eric House <xwords@eehouse.org>
Date:   Fri May 17 10:20:18 2019 -0700

    wip: identify highest-scoring word

commit 4e498f754d637a15c63ec8498bad35c58f348a45
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 16 21:34:04 2019 -0700

    wip: transmit client dupe-mode moves to server

    and fix failure to get dupe flag into server on client side

commit 225b0f579d0c9aae85f439739d686b8afda7b6e3
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 16 19:54:41 2019 -0700

    wip: invitation works to assign tiles

    Include in nli sent across that we're in DUPLICATE mode. When sending
    and receiving assigned tiles in that mode, send only one set and remove
    from pool only once. But: games don't always connect, which might or not
    be due to these changes. Next: handle commit by sending the move but not
    a new tray.

commit 7e7b5d65e2fd4ccaf6657d88c9c9e1c59adc8c4f
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 16 19:46:25 2019 -0700

    wip: remove excessive logging

commit 8afc11dc54c5aa145066729594fb741cf9e51c2c
Author: Eric House <xwords@eehouse.org>
Date:   Thu May 16 08:15:20 2019 -0700

    wip: accumulate local turns

    Track whether players have committed turns yet. Once all have
    notice (but do nothing yet).

commit d7697fba6f7bffc37d2ee09d9b397c1bb04cdf4b
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 15 22:24:04 2019 -0700

    wip scoreboard shows it can be multiple players' turns

    modify how scoreboard is drawn. next: let players commit until all are
    done

commit eaa551d1d587fba90bb6cf960b4321949d173ef5
Author: Eric House <xwords@eehouse.org>
Date:   Wed May 15 20:05:25 2019 -0700

    wip: add duplicate checkbox and assign same tiles to all

    next: make it everybody's turn until it's nobody's. This is all in
    standalone mode for now.
2020-01-30 16:00:56 -08:00
Eric House
598be04bef make curses app more like the rest
Lots of changes adding a games-list view to the app from which you
create new games, open and delete existing ones, etc. There's still
plenty that's unimplemented, but it's already more useful for testing
and development. Which is the point.
2020-01-24 09:05:16 -08:00
Eric House
47d4d51876 pull in stream changes from dup branch
No impact now, but I want to change the game stream format to add
deviceID somewhere and that won't merge with these other changes.
2019-12-22 23:19:01 -08:00
Eric House
a35f0f7339 fix stall when sending chat
Oops. Old code doesn't mark chat messages as successfully processed.
2019-11-05 08:30:15 -08:00
Eric House
37ac29e65e always log hash failure 2019-11-03 09:34:18 +00:00
Eric House
0b61a8bfb7 assert that valid message is handled
I suspect that messages are being dropped (in server) after being
recorded (in comms), causing the game to stall forever. So add an
assertion that it's not happening. Haven't seen it yet in a few hundred
games, but it'll be nice to be more confident.
2019-08-29 23:10:42 +03:00
Eric House
30fd27aa53 change engine to optionally look at pending tiles
option not used ... yet
2019-05-26 17:59:00 -07:00
Eric House
2744649e48 one less malloc 2019-03-09 12:12:47 -08:00
Eric House
f5c9962b66 tweak/reduce logging 2019-02-06 19:36:17 -08:00
Eric House
3d7d1b8ffd don't call tile picker more than once
Some devices, including my Moto, are apparently calling server_do() more
than most. When the game's supposed to be asking the user to pick tiles
that resulted in stacked TilePickAlerts. The stack of these
sending (taken together) too many picked tiles to the game made it
crash. So modify server to have only one pending tile-pick request going
at a time. Because the server can't know when the user dismisses the
alert in Android and so won't post again, respond to the dismissal by
closing the game. Reopening will put it in a state where the tile picker
can get called again.
2018-08-01 20:30:51 -07:00
Eric House
d4436b7706 Break part of util into dutil
Trying to separate what's game-specific from what can be app/device
specific (i.e. with a long lifespan, and available when a game isn't
open.)

Android will be broken after this commit and fixed after the next
2018-07-05 07:58:50 -07:00
Eric House
d46a4d13ba use mem_stream_make_raw() where possible in common code 2018-06-27 23:42:50 -07:00
Eric House
d240e30bf4 test script: log and show tiles left in tray
Once the pool count drops to 0, start showing the number of tiles left
in the user's tray. This prevents there being a long time when nothing
seems to be changing *and* the script from exiting early because it
thinks all games are hung.
2018-05-25 21:36:25 -07:00
Eric House
535dc29646 silence warning 2018-04-18 21:54:51 -07:00
Eric House
cee7d696fc fix stuff to make valgrind happy 2018-04-17 21:13:53 -07:00
Eric House
ff82aa4251 fix asserts that fire when test script includes undos
When I used the --undo-pct flag in discon_ok2.py asserts occasionally
fired. This fixes that, and seems not to break anything.
2018-04-14 10:42:53 -07:00
Eric House
317df71588 more valgrind fixes 2018-04-14 10:17:12 -07:00
Eric House
fecbfdddb6 tweaks to logging for stack hash debugging 2018-04-08 20:46:35 -07:00
Eric House
de01c1aadb cleanup/modernize (should be no behavior change) 2018-03-01 08:13:38 -08:00
Eric House
760aa3d304 juggle tiles in generated moves (debug only)
Got a report of crashes due to corrupt move records. Given I rarely see
them I wondered if it's because the hint- and robot-generated moves I
work with have tiles in order. So now on debug builds tiles in moves
from those sources are randomly rearranged (as if the user had formed
the word in random order.) The bug isn't showing up, but I figure the
test's worth keeping.
2018-02-28 06:44:44 -08:00
Eric House
19a6672785 don't show current players tiles in list of remaining 2018-01-18 22:02:06 -08:00
Eric House
52a1ccd4dc tweak comments 2017-07-19 06:16:22 -07:00
Eric House
0b0a50bd5c add timestamp to chat messages, db and display
On send, add current seconds to message. Store and display in android
code. Display layout needs work.
2017-06-10 11:36:45 -07:00
Eric House
4c9c5b3418 tweak picker; fix no-tiles-left case
Minor changes to strings and code for tile picker, and fix bug where
server.c was asking for 0 tiles (because none are left in pool.)
2017-03-15 07:12:40 -07:00
Eric House
58fc0e9b81 snapshot on the way to working tile picker
New classes implement custom alert and its view, where most of the logic
for putting up one button per tile, hiding and showing buttons based on
what's left, etc. lives. Rough, but works well until rotated, when gets
redrawn without spaces for the buttons that could come back.
2017-03-14 07:23:30 -07:00
Eric House
1cd863b877 fix assertion around out-of-order tile assignment
Got a crash opening games where tile pick was on and first player was a
robot. Cause: non-robot player's tiles were being assigned before the
robot's, and the move stack didn't like the out-of-order assignments.
Now we assign tiles in order as before, but pause each time we find a
non-robot that needs to pick its own.
2017-03-09 21:40:19 -08:00
Eric House
6e5973c55b toward making tile picking work through rotations
Make face-up tile picker util method return void and add mechanism for
passing in selected tiles asynchronously, as has been done recently with
the rest of the once-blocking util callbacks. Works perfectly in the gtk
case. Likely crashes in curses (if picking face-up option is on.) In
java all the callbacks are there but rather than put up a UI we pretend
the user says "pick 'em for me" each time. Putting up a UI is next.
2017-03-09 20:36:14 -08:00
Eric House
c271202faa make bad phonies alert non-blocking
Continue conversion of alerts that required blocking the JNI thread. Now
board_commitTurn() takes a second boolean indicating whether phonies
found have been approved by user. Common code informs user, and if he
approves client code calls board_commitTurn() again. In case where
turn's lost there's no call to make back, but there's the undesirable
change that if a robot moves next its move will be reported on top of
the turn-lost alert. Ideally new alerts would appear under, not on top
of, those that have not yet been dismissed.
2017-02-20 07:20:19 -08:00
Eric House
1a830fbff2 use clang instead of gcc for ndk builds
And make changes to C code to fix resulting warning. The .so file
basically works but is not thoroughly tested.
2016-10-25 06:09:40 -07:00
Eric House
4c923ead08 add isLocal param to server_getCurrentTurn
I want to store this information separately in summaries tables so
e.g. games can be displayed sorted by whether it's the local player's
turn.
2016-08-26 06:58:55 -07:00
Eric House
2faf9c5334 bug: update lastturn timestamp for single-player games too 2016-07-25 08:38:24 -07:00
Eric House
406eb77f54 post notification (rather than just play sound) when turn comes into
boarddelegate but it's not visible
2016-04-14 22:16:18 -07:00
Eric House
22dde029c8 Merge tag 'android_beta_100' into android_branch
ready for release
2016-01-03 11:36:37 -08:00
Eric House
ebcae1a523 move hashing into memstream impl, and reintroduce the old/broken
treatment of the final 8 bits. I'll need to release a version that
still produces the incorrect hash for compatibility with existing
clients that expect it, but that also looks for the correct hash. When
that's out there I can do a new release that sends the correct hash.
2016-01-01 17:57:14 -08:00
Eric House
4813c95976 cleanup: rename function and remove unused param 2015-12-31 15:47:48 -08:00
Eric House
02d5d26c60 when a move comes in whose hash doesn't match the top of the move
stack, go down the stack looking for a match. If it's found, pop down
to that point then apply the move. This fixes stalls in the test
engine when undo is enabled, and so I assume that undos and turns are
somehow coming in out-of-order. Should be rare that this happens.
2015-12-31 06:04:55 -08:00
Eric House
a2ca381890 remove assert when hashes don't match. As currently implemented, this
can happen when somebody does an undo, since the ordering of undos and
moves is not assured. The result is a temporary (I think) stall, where
a move is rejected because the hash doesn't match, but that will be
accepted later when the undo's been processed and the hash will now
match.
2015-12-30 05:59:06 -08:00
Eric House
c96861b329 wrap hash-related logging in ifdefs so can be easily turned on 2015-12-29 19:00:30 -08:00
Eric House
299b8ddc70 assert when hashes don't match. This may be legit, but I need to
understand when it can happen because I think it's the cause of games
failing to communicate in the field
2015-12-29 07:11:05 -08:00
Eric House
122335c53c Merge branch 'android_branch' into relay_noconn
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2015-09-17 07:00:04 -07:00
Eric House
cba1293bec make return value void since it's never used 2015-09-15 20:54:01 -07:00
Eric House
47954f82d0 add index of sending player to chat transmission, and on receiving
side translate that into showing the sender's name in
notification. Not yet done: replacing silly "not me" in chat listing
with same, but now it should be easy.

Conflicts:
	xwords4/android/XWords4/archive/R.java
2015-08-12 07:43:20 -07:00
Eric House
8f7267b3ec add index of sending player to chat transmission, and on receiving
side translate that into showing the sender's name in
notification. Not yet done: replacing silly "not me" in chat listing
with same, but now it should be easy.
2015-08-12 07:36:36 -07:00
Eric House
33d0db93e8 add some consts 2015-07-06 20:23:22 -07:00
Eric House
90dbd52bfd On client, when game ends locally set turn to -1 (nobody) so that
display won't be confusing during the interval before the server
receives the move and responds with a game-over message.
2015-06-10 07:35:39 -07:00
Eric House
e66260950e change final score formatting so it can be properly localized.
Note: because the substitution is done in common code I can't use the
positional specifiers (%1$s vs %s) and so this breaks the generated
"translations". The scripts that do the generation need to be fixed to
understand the formatted="false" attribute.
2015-05-13 07:51:32 -07:00
Eric House
75a805634f increase buffer size so French strings don't overflow and get
truncated.
2015-03-19 06:28:40 -07:00
Eric House
5f33d99c2e toward making full use of getQuantityString(): add util method to pass
quantity through to java world, use it, convert English <string>
resources to <plurals> (using python script) based on parallel changes
in French, and modify callsites to call getQuantityString() where
R.string.xxx became R.plurals.xxx.
2015-03-18 21:23:30 -07:00
Eric House
f039ee8338 reject message for client that arrives for server rather than asserting 2015-02-07 13:20:47 -08:00
Eric House
688b3944bb fixes to invite: don't allow non-servers to invite; have common code
inform of number of missing even when it hasn't dropped to 0 (so
second invite can be sent for 3+ device games); take down older alerts
before posting new (again since number of missing may have changed)
2015-01-05 07:43:45 -08:00
Eric House
4701fe2b90 pass in number of devices already connected so forceChannel can be set
more correctly; put up alert when device rejects an invitation as a
duplicate.
2015-01-03 09:50:07 -08:00
Eric House
28bfa3c904 make forceChannel part of CurGameInfo rather than comms, since Android
needs to save it there on receipt of an invitation (doesn't create
full game with comms until later.)  Passes discon2 tests and seems to
work on a single Android device. (Haven't tested inviting on Android
yet.)
2014-12-29 07:39:28 -08:00
Eric House
c008f55133 add invite button only if I'm a host and am missing players 2014-11-12 06:52:40 -08:00
Eric House
c3e7b12103 merge android_branch 2014-10-23 06:33:28 -07:00
Eric House
51a1ddfe39 include robot name in report of his score 2014-10-23 06:32:24 -07:00
Eric House
878a16b3bc snapshot: android compiles, and works well enough to exchange moves
via relay!  Lots of changes, mostly around treating connTypes as a Set
inside the java world.  Jni to translate to that is a pain.
2014-10-16 06:45:24 -07:00
Eric House
fe4c7b52f2 snapshot: relay test script works with a second address type set
(though with its actual transport stubbed out).  Android doesn't even
compile.
2014-10-15 07:26:18 -07:00
Eric House
aa566ad1f0 call util_informMissing when the pendingPlayers count drops to 0 2014-09-25 06:36:07 -07:00
Eric House
1e80109c3e add assert, and don't pass pendingRegistrations to clients -- it confuses them 2014-09-24 19:33:59 -07:00
Eric House
743d532fc7 putting back recent change: this works for automated test and gtk
manual app.  I'm not sure what's up with pendingRegistrations but it
needs more studying before I can change it.
2014-09-24 19:16:06 -07:00
Eric House
3d6f972e9e fix number of missing players not being calculated correctly 2014-09-23 21:30:31 -07:00
Eric House
a7c114e3f9 refcount dicts. Model "owns" its copy and so increments the refcount when gaining one and decrements the count on any being replaced (and on all on exit). This is setting up the real change, which is to let the java world wrap dicts in objects that hang onto them until they're destroyed, which should fix problems where dicts are referenced after they've been destroyed. 2014-03-08 20:57:27 -08:00
Eric House
242f722f2e remove logging 2014-02-28 18:56:39 -08:00
Eric House
e34cc9007d fix problems with opening and using wordlists on 64-bit linux by
making XP_U32 32 rather than 64 bits. Duh. Do same on Android jni just
in case.
2014-01-07 06:58:20 -08:00
Eric House
f46f8ed560 cleanup 2013-12-30 07:08:42 -08:00
Eric House
762945857e fix to work for standalone games too 2013-12-19 07:59:00 -08:00
Eric House
8fa5e3e4bd drop duplicate packet rather than asserting 2013-09-11 07:30:12 -07:00
Eric House
a25d664eb5 Merge branch 'from_android_beta_65' into android_branch
Conflicts:
	xwords4/android/XWords4/res/raw/changes
	xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java
2013-09-09 08:01:28 -07:00
Eric House
94b2eddda6 fix crash by adding byte protocol expects 2013-09-09 07:42:00 -07:00
Eric House
573a87993e Don't propogate chat when queue too full. This *should* only impact
tests since users won't keep chatting at a non-responsive friend.
2013-07-20 08:01:56 -07:00
Eric House
e6248210a5 when formatting final scores, print all players with top score as
Winner (fixing bug that occurred in case of a tie)
2013-07-04 12:37:10 -07:00
Eric House
3364dcbf46 remove unused enum 2013-07-03 07:26:23 -07:00
Eric House
1f63745e34 add more logging in search of channelNo bug 2013-07-01 07:54:38 -07:00
Eric House
b58fe30ecc add synonyms to tile counts/values summary 2013-05-14 22:00:22 -07:00
Eric House
83b1d4c364 fix compiler warnings 2012-12-08 06:40:21 -08:00
Eric House
e7d5be06e9 fix crash when old client connects to new host by making host use the
right version test in deciding what to send.
2012-10-27 08:52:54 -07:00
Eric House
b097e0825e fix linux crash do to casting problem 2012-10-26 06:49:15 -07:00
Eric House
aec03fc572 When a game's consumated and guest discovers it isn't using the same
dict, give chance to switch, and to download if required.  Because of
the way the JNI thread works, and JNI's requirement in general that
env instances match up (e.g. dicts must be destroyed in the same
thread that creates them), substituting into a live game is too hard.
So the game's saved with its new dict and then reloaded.
2012-10-24 07:17:21 -07:00
Eric House
13c74cfbd5 protect changeDict feature with compile-time flags (since it can't be
used on Android)
2012-10-24 06:46:54 -07:00
Eric House
c69dbda36f add new game_changeDict() and enough gtk code to test it. 2012-10-23 19:06:00 -07:00
Eric House
528c061156 report host-chosen dict name a bit later 2012-10-15 06:21:08 -07:00
Eric House
e90c5ee94f pass index of resigning player into util_notifyGameOver. Not yet
passed into java.
2012-10-09 05:31:12 -07:00
Eric House
e64ecfb78d implement resign on top of existing endGame logic, adding "quitter" as
new param passed to remote and changing final score formatting and
menu items to match.  Still need to show old menu on android in case
where game has already ended.
2012-10-07 12:47:06 -07:00
Eric House
968340f665 Fix release-build warnings that new compiler flags. 2012-10-07 11:43:50 -07:00
Eric House
2c89f13383 add turn as param to util_turnChanged, and call from server rather
than board.
2012-09-27 07:04:57 -07:00
Eric House
94103a4212 track time of most recent turn start, and include it in summary table. 2012-09-27 06:55:46 -07:00
Eric House
6ddd4a61c1 fix compile errors (mostly unused variables) found by gcc on latest
Ubuntu (12.04).
2012-09-25 07:28:02 -07:00
Eric House
95a7b14a3a transmit dict's md5sum along with name in initial message from host to
guest.  On guest, pass that sum into client code along with names so
the appropriate tests can be done and corrections taken.
2012-09-08 20:23:48 -07:00
Eric House
07e6239699 transmit name of failing dict 2012-09-06 08:01:11 -07:00
Eric House
509c832f2f more progress: copy dict name into badwordinfo and free it successfully 2012-09-06 07:49:05 -07:00
Eric House
2f8b6cceb5 pass additional param into callback -- unused so far. 2012-09-06 07:19:12 -07:00
Eric House
4325d4e709 Merge branch 'android_branch' into android_dictname 2012-09-05 19:30:50 -07:00
Eric House
1ec03e48bb plug leak: don't alloc stream when it won't be used 2012-09-05 19:09:01 -07:00
Eric House
270a19f3aa Revert "first of a set of changes to communicate to clients dictionary being"
This reverts commit b7a0f1489b, which I didn't mean to check in on this branch.
2012-09-03 21:34:51 -07:00
Eric House
ea4d805d5f first of a set of changes to communicate to clients dictionary being
used by server.  Clients need to care if e.g. the server's disallowing
phonies based on its dict.  Can only be sent if client is of latest
version.  In that case, common code calls into new util function.  In
future changes, BoardActivity's implemention of the callback will need
to check if the server's choice of dict is available, and if not offer
to download it.  Once it's available, will want to install it.
2012-09-03 21:33:46 -07:00
Eric House
b7a0f1489b first of a set of changes to communicate to clients dictionary being
used by server.  Clients need to care if e.g. the server's disallowing
phonies based on its dict.  Can only be sent if client is of latest
version.  In that case, common code calls into new util function.  In
future changes, BoardActivity's implemention of the callback will need
to check if the server's choice of dict is available, and if not offer
to download it.  Once it's available, will want to install it.
2012-09-03 21:29:21 -07:00
Eric House
c13971e3d8 convert a few more variable names from single- to double-letter 2012-08-23 06:38:29 -07:00
Eric House
32e1530d3f i => ii; no other change 2012-08-22 07:44:21 -07:00
Eric House
eb8401bb7a fix bug when turn lost for phonies in networked game: what's sent must
match what's expected.
2012-08-12 11:52:20 -07:00
Eric House
8f04bfadaf modify engine score ranking to include estimate of bonus to be earned
if all tiles are used (ending the game and triggering penalties for
other players.)  Changes are protected by compile-time flags currently
not turned on.
2012-07-29 08:35:08 -07:00
Eric House
b02855b00c sort tray after an undo adds tiles 2012-07-12 06:48:09 -07:00
Eric House
bd70a1dd7d improve text in remaining tiles dialog, and always show the tiles for
all trays rather than excluding those in current player's tray.
2012-07-09 21:44:29 -07:00
Eric House
6da3f10855 cleanup -- no code change 2012-07-09 06:15:02 -07:00
Eric House
adadc9c90c use new hash algorithm for new stream version, old for previous
versions.  Tested upgrade scenario from b44: works.
2012-05-28 11:07:59 -07:00
Eric House
0b1a9a67fe add param to server_handleUndo to prevent it from undoing all moves in
robot-vs-robot game, which is the wrong thing to do during a test
simulating play.
2012-05-24 22:25:30 -07:00
Eric House
3a54aa0ebc add util_informUndo() that gets called, and puts up a dialog, after
remote device has performed an undo on a committed turn.
2012-05-14 07:01:02 -07:00
Eric House
08f03af2cc don't write gameID as 32 bits when it's bound for old-version client,
and assert based only on the lower 16 bits in case came from
old-version client.  Fixes crashes testing mid-game upgrade from beta
43.
2012-05-07 07:02:43 -07:00
Eric House
d59b19514b Merge branch 'android_branch' into android_bt 2012-05-03 21:44:35 -07:00
Eric House
de3107271d changes to make hashing work -- make sure unused space in structs is 0
-- and to detect when an incoming move doesn't make sense.  These
latter changes may not be necessary now that hash code is checked
first thing, but can't hurt, and there will be devices without hash
codes for a while.
2012-05-03 19:02:42 -07:00
Eric House
09f9038cff add option to have robot choose to trade tiles a configurable percent
of the time.  Meant to increase automated test coverage of trades.
2012-05-02 20:14:42 -07:00
Eric House
c52db8a8f0 toward better recovery from out-of-sync move and undo: include a hash
of the move stack with every turn (version permitting), and drop
incoming moves created against a move stack different from ours.
2012-05-01 07:58:11 -07:00
Eric House
c15b56199c use marker enum to test for size. no code change 2012-04-22 17:55:53 -07:00
Eric House
9caeff4a5e recover a bit better from messages not meant for me, as is happening
when a devices sends to self via SMS and client winds up getting a
registration message it just sent.  Not perfect yet (and may require a
change in the comms protocol -- that's not versioned :-(.
2012-03-19 07:35:20 -07:00
Eric House
cd8889f90e Merge branch 'android_branch' into android_bt
Conflicts:
	xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java
	xwords4/linux/Makefile
2012-03-12 07:04:06 -07:00
Eric House
f51c0b39e6 use const where possible for game_writeToStream and others it calls.
No other code changes.
2012-03-11 18:28:14 -07:00
Eric House
07fba2c71b Fix problem with writing server to stream changing its internal state
so that snapshotting made score strings disappear.  Also rename
stream_copyFromStream to stream_getFromStream to make it clearer that
the src is modified.  And swap params in stream_setPos().
2012-03-11 14:57:28 -07:00
Eric House
1ed1bce7d1 call informMissing after loading game -- before that it'll never be 0. 2012-02-12 22:27:58 -08:00
Eric House
0755a9e781 add new util function that gets called when a game is opened to inform
it if any players are missing.  Idea's to allow for non-relay devices
the invitation opportunity that comes when a game connects to the
relay and learns that no other games have joined its room.
2012-02-09 05:19:03 -08:00
Andy2
2a34cd1e05 remove second param from server_do() -- it doesn't work anyway. 2011-12-21 18:45:05 -08:00
Andy2
08063d9444 Merge branch 'android_branch' into send_in_background
Conflicts:
	xwords4/android/XWords4/src/org/eehouse/android/xw4/NetUtils.java
	xwords4/android/XWords4/src/org/eehouse/android/xw4/XWApp.java
2011-12-01 21:18:37 -08:00
Eric House
4a32942e57 two fixes that seem to allow old- and new-proto devices to play games
with 15x15 and 17x17 (and presumably larger) with the old games being
upgraded mid-game: when server's new and wants to use a larger board
but not all clients are capable, shrink the board; and, when new
server is opening state saved by pre-upgrade code, assume a non-0
proto version for clients that registered earlier (as old code didn't
save the client's proto version.)
2011-12-01 20:22:16 -08:00
Eric House
c1e420f726 Merge branch 'android_branch' into send_in_background
Conflicts:
	xwords4/relay/rq.c
2011-11-29 06:45:32 -08:00
Eric House
adb9b3853d fix bugs around new variable-length tiles array changes, and otherwise
improve storage of col/row data so that test runs succeed with
MAX_COLS of 16 or 32.  Still to do: test mid-game upgrade.
2011-11-28 18:46:08 -08:00
Andy2
d37424ad7f Merge branch 'android_branch' into send_in_background
Conflicts:
	xwords4/linux/linuxutl.h
2011-11-21 22:18:52 -08:00
Andy2
fab39a5f87 Trying to deal with old- and new-proto devices interacting. Fix
clients to append their stream version to their inital connect
message.  (The format can't change, so detecting additional length was
the only option.  comm.c on existing clients won't allow more than one
connect message per channel, so adding a new to be used in addition
didn't work.)  New servers detect this; old will ignore.  Track the
version (implicit or not) of all clients, and use the lowest any
supports, so that new server and all new clients will use newer proto.
2011-11-16 06:47:55 -08:00
Andy2
bdb8e6f03c fix several crashers that prevented network games from working when
MAX_COLS was larger than 16.  In order that old-style messages on
relay be readable by new-style code on device, modified server.c's
protocol to include stream version.  But: unless I come up with a
better way of doing this all devices will have to be upgraded at the
same time: old won't be able to read the new format as it's done here.
2011-11-15 06:13:25 -08:00
Andy2
2492e7cfc5 Merge branch 'android_branch' into send_in_background
Conflicts:
	xwords4/linux/cursesmain.c
2011-11-13 17:10:46 -08:00
Eric House
619c25ee49 add a bit of logging to help deciphering test app problems. 2011-11-10 18:28:11 -08:00
Andy2
af5c8a096f don't pass a pointer to a tray inside the model to model code that
will modify that tray!  Fixes nasty random crash/assertion failure.
2011-11-10 06:35:05 -08:00
Andy2
8d228ae190 turn on face-up tile picking for Android (though there's no prefs UI
to enable it for a game yet).  In common code, break pick tile utils
method in two, one for blank and the other for tray tiles.  In java,
implement dialog for picking the tiles.  Works, though is a bit clumsy
to have the dialog come and go after every pick.  Better would be a
dialog that stays up and accumulates picks -- but it'd have to know to
reduce the set of tile choices as letters are chosen.  This'll do for
now.
2011-10-28 22:15:56 -07:00
Andy2
4eee7f8aa7 Pass selected tiles into new util function, and from there into java
world, so confirming query can include them.
2011-10-19 18:34:26 -07:00
Andy2
f41d3c27e6 Merge branch 'android_branch' into send_in_background
Conflicts:
	xwords4/common/server.c
2011-10-19 06:23:16 -07:00
Andy2
c2a7a5c347 fix crash: don't destroy stream if for some reason it's null. Not
sure how that happens, but it does.
2011-10-18 21:29:40 -07:00
Andy2
b31e829414 Remove file-format differences between debug and non-debug versions.
Fix curses to compile non-debug.
2011-10-18 18:52:37 -07:00
eehouse@eehouse.org
b8adbd94c1 Merge branch 'android_branch' into send_in_background 2011-10-18 06:47:38 -07:00
Andy2
8062a027e7 cleanup: NULL's a legal value now. 2011-10-17 06:48:13 -07:00
eehouse@eehouse.org
5afb0ae145 Merge branch 'android_branch' into send_in_background 2011-10-14 22:34:29 -07:00
Andy2
0e6b4d749f When pen held on committed tile on board, cons up list of all words
played that include that tile and pass to new util_cellSquareHeld()
method.  In java implementation of that method, use existing lookup
activity code to display list of words.  Enabled on the C side by a
compile-time flag in case it has problems.  Right now the time spent
saving a game before launching the lookup activity, and reloading it
after, is pretty apparent, but that's in emulator which is slow.
2011-10-13 19:14:08 -07:00
Eric House
861a24dfeb Merge branch 'android_branch' into send_in_background 2011-10-10 22:42:28 -07:00
Andy2
4bb61401bd fix crash: src and dest stream params were reversed. 2011-10-10 22:24:44 -07:00
eehouse@eehouse.org
471a9d988d Merge branch 'android_branch' into send_in_background 2011-10-05 07:10:52 -07:00
Andy2
dc20b04a4c remove unused param (on the C/jni side) 2011-10-04 18:54:53 -07:00
eehouse@eehouse.org
82615f409b Merge branch 'android_branch' into send_in_background 2011-10-04 06:49:19 -07:00
Andy2
c04f981442 fix new word-list reporting to work for networked games too: create
and save a second stream parallel to the existing one reporting the
move scoring.  Requires bump in stream version.
2011-10-04 06:44:29 -07:00
Andy2
77b9fa11a5 improving lookup words experience: replace
util_userQuery(QUERY_ROBOT_MOVE) with new util_informMove(), into
which the number of words formed and the words themselves are passed.
The process of consing up the score explanation was already passing
over the model, so storing the words is very little effort, and will
save a call back into the model where the user actually wants to do
the lookup.
2011-10-02 16:21:09 -07:00
Eric House
f0c3e2c5f0 Merge branch 'android_branch' into send_in_background 2011-09-22 17:22:01 -07:00
Andy2
35a0a3a291 passing pool into word-listing code a mistake as it put tiles back
when undoing and so the pool grew each time.  Fix, and remove server
API as it's unneeded.
2011-09-22 06:41:48 -07:00
Andy2
92614370ce Merge branch 'android_branch' into send_in_background
Conflicts:
	xwords4/common/comms.c
2011-09-20 06:21:54 -07:00
Andy2
9eacdb3856 add server_listWordsPlayed, and implement via function in model.c that
uses existing stack and undo features to run a WordNotifierInfo over
some number of scoring passes to gather the words seen.  Seems to work
as tested from gtk version.  Now need to try from android....
2011-09-18 17:20:01 -07:00
Andy2
63893b8a0d add stream_getPtr() and use to remove a couple of allocs, including
one per message sent.
2011-09-18 16:54:36 -07:00