Commit graph

126 commits

Author SHA1 Message Date
Olivier Teulière
2fa213a32b Rename the files of the ncurses interface.
The ncurses.h file could clash with /usr/include/ncurses.h, causing
the build to fail with an unintuitive error message.
2013-04-07 00:18:46 +02:00
Olivier Teulière
4060b20c5b Fix ncurses detection (on Archlinux in particular). 2013-04-06 15:10:27 +02:00
Olivier Teulière
927c1cedd1 Text interface: improve slightly the topping mode 2013-01-19 00:53:37 +01:00
Olivier Teulière
c1c3f3b48b Bag: rename a method 2013-01-17 17:14:38 +01:00
Olivier Teulière
27c9b5015a Tests: remove the useless "Player" column in the game history 2013-01-16 14:27:08 +01:00
Olivier Teulière
34c7219f75 Ncurses: remove the useless "player" column in the history view 2013-01-16 14:06:06 +01:00
Olivier Teulière
1e0de63ef8 Results: add a isEmpty() method, and use it where possible 2013-01-16 11:15:12 +01:00
Olivier Teulière
0c87ae7cde Update some m4 macros with the latest available version 2013-01-06 17:46:35 +01:00
Olivier Teulière
f1c2d3951d GameFactory: remove the useless releaseGame() method 2012-12-30 16:38:07 +01:00
Olivier Teulière
681a7b28cb New topping mode (very beginning) 2012-12-29 17:51:16 +01:00
Olivier Teulière
5441007db1 New BoardLayout class to wrap the board layout (size and special squares).
Until now there is no user-visible change, but it should make it much
easier to add custom layouts.
2012-12-29 17:50:18 +01:00
Olivier Teulière
3fc1b51f6b GameIO: remove a useless parameter 2012-12-29 17:46:14 +01:00
Olivier Teulière
8858c54656 Minor cosmetics changes (more C++-like) 2012-10-24 15:23:59 +02:00
Olivier Teulière
02249c214e Various fixes for problems detected by Coverity.
Most of them where not actual problems, though.
2012-10-13 13:49:40 +02:00
Olivier Teulière
0fa1c79563 Add myself to the authors, and fix some copyright headers 2012-10-11 13:45:24 +02:00
Olivier Teulière
4200e33c17 Change the copyright years for all the files modified in 2012 2012-10-11 13:45:24 +02:00
Olivier Teulière
471dcf90e1 Rename Turn into TurnData (step 2) 2012-10-06 17:49:35 +02:00
Olivier Teulière
fa345a9f7b Rename Turn into TurnData (step 1) 2012-10-06 17:49:35 +02:00
Olivier Teulière
40944884e6 Remove Player::getPoints() 2012-10-06 17:49:35 +02:00
Olivier Teulière
2ab95b5ed9 Get rid of old CVS files 2012-10-06 01:44:33 +02:00
Olivier Teulière
8b0c3327e7 Tests: ignore commands starting with "# " 2012-10-05 20:37:44 +02:00
Olivier Teulière
2b6b85cce3 Arbitration: allow removing penalties 2012-05-20 22:12:42 +02:00
Olivier Teulière
0095302b88 Use dedicated getters for the Move type: this is simpler to use and more readable 2012-05-05 19:45:44 +02:00
Olivier Teulière
36bfa92761 Arbitration: a few fixes to improve usage of the text interface 2012-04-28 15:34:37 +02:00
Olivier Teulière
f3f2d916bb Fixed a few memory leaks 2012-04-28 15:34:37 +02:00
Olivier Teulière
afb45d62c4 Preferences: removed the option to link the rack with the 7+1 dictionary tool 2012-04-28 15:34:36 +02:00
Olivier Teulière
bd8678f147 Text interface: removed useless display methods 2012-04-11 20:02:18 +02:00
Olivier Teulière
fd1773ef6e Text interface: correctly check the return value when passing 2012-04-11 20:02:18 +02:00
Olivier Teulière
5bb492ceb4 Text interface: simplified the parsing code 2012-04-11 20:02:18 +02:00
Olivier Teulière
a1e06317f0 Text interface: basic support for the arbitration mode 2012-04-11 20:02:18 +02:00
Olivier Teulière
d6a2fc6e4e PublicGame: more direct access to the game current rack 2012-03-26 07:49:25 +02:00
Olivier Teulière
05a51101db New arbitration mode, dedicate to arbitration of duplicate games.
It is mostly working, but many things are still missing.
In particular:
 - ability to enter (or change) moves for a past turn
 - ability to change the rack (manually, or randomly)
 - ability to add/remove players during the game
 - support for solos, warnings, penalties
 - support for table number
 - more ergonomic interface
 - non regression tests
 - ... and probably bugs to fix
2012-03-10 18:06:41 +01:00
Olivier Teulière
22fd6484f3 Correctly retrieve the game rack 2012-02-25 23:51:30 +01:00
Olivier Teulière
bf42c49850 Added loggers to most classes 2012-02-19 13:07:29 +01:00
Olivier Teulière
c81df46b5e Added a new type of move: NO_MOVE 2012-01-17 00:56:02 +01:00
Olivier Teulière
9aea22d968 Use an enum for the variants 2011-08-28 19:25:26 +02:00
Olivier Teulière
56b66fea28 Added setters to GameParams, to simplify the code a little 2011-08-28 19:25:26 +02:00
Olivier Teulière
befe577fe7 Got rid of Game::getModeAsString() 2011-08-28 19:25:26 +02:00
Olivier Teulière
17bdd27899 Moved the dictionary to the GameParams class 2011-08-28 19:25:26 +02:00
Olivier Teulière
408c92df42 Moved the game mode to the GameParams class 2011-08-28 19:25:26 +02:00
Olivier Teulière
3d48facb55 Cosmetics 2011-08-28 19:25:26 +02:00
Olivier Teulière
d6fbd6bef1 Allow combining several variants in a single game 2011-08-28 18:47:25 +02:00
Olivier Teulière
38f3a456bb Handle the "7 among 8" variant in a few more places 2011-08-28 15:52:12 +02:00
Olivier Teulière
336a5a6111 eliottxt.cpp is now encoded in UTF-8 2011-08-28 15:06:15 +02:00
Olivier Teulière
4aa7c1a548 Support the "7 among 8 variant" in the text interface 2011-08-28 14:51:56 +02:00
Olivier Teulière
fdc29871e5 New GameParams class to wrap a few game characteristics.
These characteristics will not change during the game.
2011-08-27 21:55:49 +02:00
Olivier Teulière
cfa88072a3 Replace the use of convertToMb() and convertToWc() with macros 2011-07-30 19:48:05 +00:00
Olivier Teulière
0c76b9d781 Simplified the looging macros, and added logs in various key places. 2011-01-29 23:47:20 +00:00
Olivier Teulière
e175a6d8bc Added a new (optional) dependency on log4cxx, to enable logging.
If disabled (the default), everything is compiled away.
2011-01-16 21:30:30 +00:00
Olivier Teulière
dd44196d21 Renamed _wtoi into wtoi to avoid a name collision with mingw32 headers 2010-05-20 20:27:47 +00:00