Commit graph

1043 commits

Author SHA1 Message Date
Olivier Teulière
40944884e6 Remove Player::getPoints() 2012-10-06 17:49:35 +02:00
Olivier Teulière
c700f39ac7 Stats: display end game points for a free game 2012-10-06 17:49:35 +02:00
Olivier Teulière
b53295c782 Stats: compute the ranking based on the final score, not the intermediate one 2012-10-06 17:49:35 +02:00
Olivier Teulière
553d7f9cf0 Freegame: use PlayerEventCmd instead of PlayerPointsCmd 2012-10-06 17:49:34 +02:00
Olivier Teulière
2ab95b5ed9 Get rid of old CVS files 2012-10-06 01:44:33 +02:00
Olivier Teulière
88b6e09ffb Tests: move test cases to sub-directories 2012-10-06 01:41:59 +02:00
Olivier Teulière
1f9f42f17a Tests: comment commands failing due to the rand seeds problem.
The tests are valid, but after loading a game the random number
generator is broken. This commit hides the problem, but at least we
can see "real" failures more easily.
2012-10-05 20:37:57 +02:00
Olivier Teulière
5ae43b176a Tests: ignore comments during file comparison 2012-10-05 20:37:57 +02:00
Olivier Teulière
8b0c3327e7 Tests: ignore commands starting with "# " 2012-10-05 20:37:44 +02:00
Olivier Teulière
db14ee0622 Training: do not use the auto-connect feature.
The code is now slightly more verbose, but easier to follow and
less sensitive to typos.
2012-10-05 16:10:41 +02:00
Olivier Teulière
75025c33df Training: improve usability 2012-10-05 16:10:41 +02:00
Olivier Teulière
e4f9c03ca7 Training: define key accelerators for the main buttons 2012-10-05 16:10:41 +02:00
Olivier Teulière
1232eda206 Set the allColumnsShowFocus property to true on some views 2012-10-05 16:10:41 +02:00
Olivier Teulière
f4b78e09b1 Arbitration: restore properly the focused player 2012-10-05 16:10:41 +02:00
Olivier Teulière
56028c8651 Arbitration: new popup menu entry to suppress an assigned move 2012-10-05 16:10:41 +02:00
Olivier Teulière
a800863c1f Arbitration: do not handle solos automatically.
The arbitrator has to specify them manually. Otherwise, we cannot know
when a turn is complete and thus we cannot determine if solos can/should
be applied.
2012-10-05 12:52:42 +02:00
Olivier Teulière
66cfd66681 Improve logging of the turns history 2012-10-05 12:38:55 +02:00
Olivier Teulière
38d7093341 Add an assertion 2012-10-05 10:28:54 +02:00
Olivier Teulière
bcc2aedbff Improve the detection of finished games for duplicate and arbitration modes 2012-10-05 01:42:46 +02:00
Olivier Teulière
f1123e1229 Fix a very rare bug in rack generation 2012-10-05 01:25:01 +02:00
Olivier Teulière
937138c21d Split the helperSetRackRandom() method.
There is now one method to check whether the rack can be drawn, and
another one (still called helperSetRackRandom()) to do all the work.
2012-10-05 01:24:56 +02:00
Olivier Teulière
58c88a3078 Let the PlayerMoveCmd decide whether it is human independent.
It fixes problems when trying to replay turns on a loaded game.
2012-10-05 00:27:47 +02:00
Olivier Teulière
74d4572a0a Arbitration: fix the "Replay turn" feature for games with only AI players 2012-10-05 00:27:34 +02:00
Olivier Teulière
ed152a380d Arbitration: correctly set the state of buttons for past turns 2012-10-05 00:27:34 +02:00
Olivier Teulière
6ec9568020 Arbitration: better label for a popup menu entry 2012-10-05 00:27:10 +02:00
Olivier Teulière
43477b77b5 Add files needed to build a Debian package 2012-08-26 22:20:40 +02:00
Olivier Teulière
86860a9f80 RackWidget: inherit from QFrame instead of QWidget 2012-08-26 22:18:42 +02:00
Olivier Teulière
d693a53910 TileLayout: respect the margins and alignment 2012-08-26 22:18:42 +02:00
Olivier Teulière
aa557f8121 Improve the handling of favorite players 2012-08-26 22:18:36 +02:00
Olivier Teulière
ee31179864 StatsWidget: add the players ranking 2012-08-26 22:18:32 +02:00
Olivier Teulière
8e1c55c79d StatsWidget: use the player name for the title of the columns. Also hide some rows depending on the game type. 2012-08-26 22:18:32 +02:00
Olivier Teulière
24bf44779a StatsWidget: display some column names even when there is no game 2012-08-26 22:18:31 +02:00
Olivier Teulière
fb2a160d7b StatsWidget: improve the tooltips 2012-08-26 22:18:22 +02:00
Olivier Teulière
80a2e9ce9c StatsWidget: various improvements.
Main changes
 - clean model/view separation
 - code simplification
 - no multi-line cells anymore
 - possibility to change the orientation of the table
 - use of bold font to highlight "top moves"
 - use of colors to highlight some important details
2012-08-26 22:18:22 +02:00
Olivier Teulière
beb6e9a395 Fix the recursion limit for the first turn.
It was never a problem until now because the size of the board is
greater than twice the size of the rack.
2012-08-26 22:18:13 +02:00
Olivier Teulière
cbdf6d010d Various minor improvements (no functional change) 2012-06-27 21:33:19 +02:00
Olivier Teulière
25f3bccdd1 TileWidget: make sure the font is at least one pixel wide 2012-06-10 23:34:23 +02:00
Olivier Teulière
06aad1b274 Create the configuration directory with all the intermediate directories (like mkdir -p) 2012-06-09 19:19:06 +02:00
Olivier Teulière
fdc1478cf4 Arbitration: disable controls for a finished game only in the last turn 2012-06-09 19:18:43 +02:00
Olivier Teulière
7af3f6a801 Updated POTFILES.in 2012-06-04 23:04:07 +02:00
Olivier Teulière
3a18a78970 Fixed make dist 2012-06-04 23:04:07 +02:00
Olivier Teulière
4c76ffe8bc Moved the "Favorite players" window to a dedicated file, and added CSV import/export 2012-06-04 23:04:06 +02:00
Olivier Teulière
a4d5709d16 Catch exceptions during the auto-save 2012-06-04 23:04:06 +02:00
Olivier Teulière
3800f54527 New utility class to parse/write CSV files 2012-06-04 23:02:12 +02:00
Olivier Teulière
6dbfcc5f99 Arbitration: the Random button now takes the remaining letters into account 2012-05-30 20:37:47 +02:00
Olivier Teulière
e88de64ac9 Stats window: display the table number instead of the row number 2012-05-30 08:14:18 +02:00
Olivier Teulière
2b6b85cce3 Arbitration: allow removing penalties 2012-05-20 22:12:42 +02:00
Olivier Teulière
89892c622c Accept "<<" in the message of the ASSERT macro 2012-05-20 22:10:57 +02:00
Olivier Teulière
3c29804148 Savegames: save/load properly the warnings, penalties and solos 2012-05-20 21:31:45 +02:00
Olivier Teulière
7868593cb2 Do not always reject completely a rack containing letters not in the bag anymore.
This could be a rack containing an incomplete input sequence for a tile...
2012-05-16 22:07:55 +02:00