Antoine Fraboulet
3bde5c3da5
- since we use History, the first round is numbered 1
...
- separate sort_by_points method, removed call from board_search
2005-12-26 21:22:21 +00:00
Antoine Fraboulet
1fb948cba9
- player now use History class for turn storage
2005-12-26 21:18:21 +00:00
Antoine Fraboulet
74900ca592
- add simple printout debug msg
2005-12-26 21:10:59 +00:00
Antoine Fraboulet
7bc239adfc
- add toString() method
2005-12-26 21:08:08 +00:00
Antoine Fraboulet
159cb33b75
- add history.[h|cpp]
2005-12-26 20:13:02 +00:00
Antoine Fraboulet
91442662d0
- fixed typo
2005-12-26 19:43:21 +00:00
Antoine Fraboulet
9fa76dda0e
Makefile.am
2005-12-26 19:19:42 +00:00
Antoine Fraboulet
983d413a3b
- adding empty constructor for History
2005-12-26 19:17:49 +00:00
Antoine Fraboulet
504198b8ff
- adding shortcut for getCurrentPlayer()
2005-12-26 18:09:52 +00:00
Antoine Fraboulet
f3ee945b91
- remove results members access methods from Training Class
...
- add m_testPlay for temporary placed words
2005-12-26 18:07:26 +00:00
Antoine Fraboulet
9b9fcfae4c
- re-enabling toString()
2005-12-26 15:53:37 +00:00
Antoine Fraboulet
ce001c7aa2
- adding getWord and toString methods
2005-12-26 15:52:48 +00:00
Antoine Fraboulet
3c31b8a2e2
- backport modifications from branch
2005-12-26 15:33:15 +00:00
Olivier Teulière
96fe9f22b1
Dic_chr returns the actual char, not a code between 0 and 31.
...
Dic_lookup takes a string containing real chars, not codes.
The idea is to hide the internal representation of the characters from the
users of the dictionary, who don't care about it.
2005-12-24 18:42:44 +00:00
Olivier Teulière
5f74291e5c
Fixed a typo in a comment
2005-12-23 22:19:22 +00:00
Olivier Teulière
777a6a5e8c
The constuctors of the players now take as argument the ID of the player
2005-11-06 17:13:45 +00:00
Olivier Teulière
9e5b6e8ebf
Use Turn objects for the players history too
2005-11-06 14:53:15 +00:00
Olivier Teulière
966418bf98
Typo
2005-11-06 01:09:41 +00:00
Olivier Teulière
4cef120cce
Minor factorization, and avoided another copy of PlayedRack
2005-11-06 01:05:06 +00:00
Olivier Teulière
d64e22dc6b
Fixed a typo and avoided a useless copy
2005-11-06 00:38:16 +00:00
Olivier Teulière
26b446f62b
Simplification in the PlayedRack history at Player level
2005-11-05 23:57:41 +00:00
Olivier Teulière
03e8a80128
Use a vector of Turn objects instead of several history vectors
2005-11-05 23:22:41 +00:00
Olivier Teulière
5b682ef9b8
- Removed Game::format*
...
- Added Game::getPlayer
2005-11-05 15:48:59 +00:00
Olivier Teulière
12894e00e2
Take more advantage of the Coord class, and remove the useless accessors
...
from Round (to force using the Coord object)
2005-11-05 13:56:59 +00:00
Olivier Teulière
85a30f16a2
Use the Coord class for rounds
2005-11-05 11:01:58 +00:00
Olivier Teulière
50fc82f60c
First backports from the branch (Game::getBoard and Game::getBag, mainly)
2005-11-04 23:26:03 +00:00
Olivier Teulière
fe13a5e627
Removed the $Id:$ lines on HEAD
2005-11-04 20:00:05 +00:00
Olivier Teulière
83bf9d8b37
Check the mandatory options in the command-line, to output a better error
...
message
2005-10-23 16:12:29 +00:00
Olivier Teulière
e3bc46b114
Updated licence text with FSF's new address.
2005-10-23 14:53:42 +00:00
Antoine Fraboulet
6626d0ee8c
Game history class, will be used for games and players
2005-08-15 22:20:20 +00:00
Antoine Fraboulet
b4e52e47cc
Eliot coordicate system
2005-08-15 18:14:52 +00:00
Antoine Fraboulet
3f438199a9
A turn is a tuple (Num,Player,PlayedRack,Round)
2005-08-15 18:13:57 +00:00
Olivier Teulière
eccb1ca5bb
Pass argument by reference to avoid a copy
2005-04-20 20:58:51 +00:00
Olivier Teulière
1895268549
Simplification; this should fix the compilation problem with gcc 3.4
2005-04-20 18:52:39 +00:00
Antoine Fraboulet
1077565ace
added toCode() function that should clarify the interface with the
...
dictionary. This function should be used wherever it applies to get
the internal dictionnary code that match the Tile.
2005-04-19 16:24:32 +00:00
Antoine Fraboulet
0d69751dfb
"int getNCharInBag(char) const" changed to "int getNCharInBag(Tile) const;"
2005-04-19 16:23:04 +00:00
Olivier Teulière
25304bd978
test/*: Added non-regression tests, based on the text interface.
...
'regression.pl' is the script that runs the regression, and 'drivers' contains
the list of scenario files to be played.
By default, the complete regerssion is played, but you can play specific
scenarios by adding them to the command-line.
Example: ./regression.pl training_bag freegame_change
2005-04-16 15:47:59 +00:00
Olivier Teulière
b16b969406
When the letters to change are incorrect, do not end the turn for the player
2005-04-16 15:43:14 +00:00
Antoine Fraboulet
76178efe99
getPlayerRack display option added
2005-04-09 16:11:04 +00:00
Antoine Fraboulet
96e94a6be3
getPlayerRack display option added + Game::back() error return
2005-04-09 16:10:25 +00:00
Antoine Fraboulet
5e08e1cf6a
manually entered racks can be lowercase or uppercase
2005-04-09 15:14:00 +00:00
Antoine Fraboulet
aa828e1f8e
int -> unsigned int return values (count and points)
2005-04-09 14:58:24 +00:00
Antoine Fraboulet
8ed5045d75
minor modifications
2005-04-09 14:56:03 +00:00
Olivier Teulière
6b025b9541
- Several fixes in the build system
...
- Added a bootstrap script to reduce manual work
- Added a --enable-debug configure switch to define the DEBUG variable
2005-04-03 21:12:03 +00:00
Olivier Teulière
b65c045cfe
Removed Game::getCurrentRack(), since Game::getPlayerRack() does exactly the
...
same...
2005-04-02 21:21:30 +00:00
Olivier Teulière
016aa2e4fe
Cross::m_tilesSet is now private
2005-04-02 21:03:45 +00:00
Olivier Teulière
daeb2cb228
Fixed a nasty bug when playing a joker game.
2005-04-02 20:46:42 +00:00
Olivier Teulière
f38e884d31
Simplification
2005-04-02 18:21:24 +00:00
Olivier Teulière
ce71e10aef
Fixed a comment and made PlayedRack::toString() a const method
2005-04-02 18:05:21 +00:00
Olivier Teulière
383548a799
Fixed compilation of Board::checkDouble() in debug mode (the == operator was
...
missing for Cross objects)
2005-04-02 17:59:07 +00:00