Antoine Fraboulet
69dada550b
- add "load" in game_factory
2006-08-11 22:14:21 +00:00
Antoine Fraboulet
8d79f6ba78
- typo in declaration
2006-08-11 22:13:41 +00:00
Antoine Fraboulet
9f86b53021
- add debug strings
2006-08-11 22:13:02 +00:00
Antoine Fraboulet
f9af9493d2
- bug correction for game::play when playing on a joker tile
2006-08-11 22:12:10 +00:00
Olivier Teulière
bb5a17d0f1
Indentation
2006-01-22 20:48:17 +00:00
Olivier Teulière
77be2e9219
Backport of the 'multibyte' branch on HEAD.
2006-01-22 12:23:52 +00:00
Olivier Teulière
2799f5191e
Use forward declarations to reduce dependencies
2006-01-02 19:05:37 +00:00
Antoine Fraboulet
4665fa176b
- add comments and emacs mode
2006-01-01 19:49:35 +00:00
Antoine Fraboulet
55badf52e4
- correct helperSetRackRandom with RACK_ALL (replace tiles in bag)
...
- add game_io.cpp to load/save a game
2006-01-01 19:48:36 +00:00
Antoine Fraboulet
5bdca9e9fd
- pldrack.h
...
add comments and emacs mode
add modes for toString
- pldrack.cpp
add modes for toString
add bool "reject", should be used later to notify a reject during game
add setRack(string)
2006-01-01 19:47:26 +00:00
Antoine Fraboulet
63005cdddb
add comments and emacs mode
2006-01-01 19:47:03 +00:00
Antoine Fraboulet
fee2ddff8f
- revert dic_chr patch. make dic_char instead.
2006-01-01 19:37:57 +00:00
Antoine Fraboulet
fea2ba6068
- correct off by one in score, once again. index+1 is right !
...
- revert previous dic_chr patch. make dic_char instead.
The board should/will use codes instead of tiles for performance reasons
in the next version
2006-01-01 19:37:26 +00:00
Antoine Fraboulet
2c262bcc34
Game load/save handling
2006-01-01 19:36:16 +00:00
Olivier Teulière
3ecf740432
- do not use std:: everywhere, it justs makes the code harder to read
...
- history.h: use forward declarations to reduce dependencies
- history.cpp: fixed a compilation warning
2005-12-27 16:54:38 +00:00
Olivier Teulière
9aeeafa61b
Removed the useless Game::getPlayerRack() method
2005-12-27 15:01:07 +00:00
Olivier Teulière
af720a02ee
- Commented out some debug messages preventing the regression to work properly.
...
- Re-indented a few lines to remove tabulations and keep a consistent coding style
2005-12-27 13:11:17 +00:00
Antoine Fraboulet
fc157bc08f
- correct bug in Game::back
...
- add regression test for this case
2005-12-27 01:06:54 +00:00
Antoine Fraboulet
d3e9d1e0ac
- off by one in History. corrected. all regression tests ok.
...
Scenario: training_dict
Scenario: training_bag
Scenario: training_search
Scenario: training_play
Scenario: duplicate_2_ai
Scenario: freegame_passing
Scenario: freegame_change
Scenario: freegame_3_ai
Summary: Everything was OK.
2005-12-27 00:06:23 +00:00
Antoine Fraboulet
4c56636aef
- use History class
...
- back is still buggy
2005-12-26 22:58:58 +00:00
Antoine Fraboulet
4881a63f75
- use History class
2005-12-26 22:58:19 +00:00
Antoine Fraboulet
1ea7bbaf9e
- comment update
2005-12-26 22:57:44 +00:00
Antoine Fraboulet
e25d5825a6
- add toString
2005-12-26 22:56:40 +00:00
Antoine Fraboulet
061242ed15
- correct empty round to have valid coord
2005-12-26 22:55:26 +00:00
Antoine Fraboulet
712ddb5125
- use of History class
2005-12-26 22:54:02 +00:00
Antoine Fraboulet
3f4c290745
- modified to use History
...
- add setRack wrapper for both manual and random
2005-12-26 22:53:26 +00:00
Antoine Fraboulet
28fcd062bf
- add toString method
2005-12-26 22:52:38 +00:00
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