Commit graph

964 commits

Author SHA1 Message Date
Olivier Teulière
aeb3cdb781 Fixed a bug in the wxWidgets interface: after a search has been done, choosing "Complement" empties the results list, even is the rack stays the same.
Before this fix, the sequence "Tirage --> Rechercher --> Complement --> click on another result" was doing invalid memory reads...
2006-10-15 10:39:11 +00:00
Olivier Teulière
5a10ec911a Fixed my previous commit 2006-10-14 10:19:12 +00:00
Olivier Teulière
ae67aa71ee Do not perform any dictionary search on a zero-length intput. This was the case due to the Refresh methods in the wxWidgets interface, during a search.
What's more, since wxWidgets is very slow to handle the list of results (benjamins in particular), a search done with the search windows open seems more responsive.
2006-10-14 09:46:15 +00:00
Olivier Teulière
0683b6a516 Fixed more memory leaks of the same kind 2006-10-08 18:24:17 +00:00
Olivier Teulière
749db006f6 Fixed a memory leak 2006-10-08 18:12:17 +00:00
Olivier Teulière
95ebd73a80 Do not crash when there is no dictionary and a search is requested 2006-10-08 12:39:13 +00:00
Olivier Teulière
ba11fc3be6 Removed another useless include 2006-09-30 22:19:17 +00:00
Olivier Teulière
8519a4d794 Removed useless includes 2006-09-30 22:11:56 +00:00
Olivier Teulière
af99d00a7b Fixed detection of flex and bison 2006-09-17 15:20:50 +00:00
Antoine Fraboulet
27822976c2 - add locales
- use _() instead of wxT() when appropriate
2006-08-11 22:18:33 +00:00
Antoine Fraboulet
7fa32af365 - correct a bug in OnSearch()
- add locales
- use _() instead of wxT() when appropriate
2006-08-11 22:17:54 +00:00
Antoine Fraboulet
0d183fb978 - add eliot.ico 2006-08-11 22:16:01 +00:00
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
Antoine Fraboulet
6f00463fa1 - removed game loading commands in mode loops
- add game loading in main loop
- changed stderr to stdout for incorrect words during gameplay
2006-08-11 22:06:53 +00:00
Antoine Fraboulet
a97b91dfe6 - add new regression test for a bug on loading previously saved games 2006-08-11 22:04:45 +00:00
Antoine Fraboulet
86c65ebc4a - add load dictionnary functions for bigendian arch
regression test is ok on linux/ppc
2006-04-16 11:27:19 +00:00
Antoine Fraboulet
d362281fba - add AC_C_BIGENDIAN 2006-04-16 11:26:04 +00:00
Olivier Teulière
1e13d6bfad Release memory properly at exit, and fixed a new/free mismatch 2006-01-29 12:40:49 +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
Olivier Teulière
93a26d757b Removed items that are done. CVS can handle the history by itself. 2006-01-01 23:09:27 +00:00
Olivier Teulière
d78c98b492 Fixed wxWidgets minimum version number in the help string 2006-01-01 22:16:42 +00:00
Antoine Fraboulet
0ca498ba40 - add todo list for current version before next release. 2006-01-01 19:56:45 +00:00
Antoine Fraboulet
c44a16dc13 - small typo fix in comments
- add doxygen file description
  - revert Dic_chr / board_search patch
    returning the character instead of the code
    was a HUGE performance penalty
    The dictionary must use codes, the board must be
    made to use codes instead of dic using tiles.
  - add Dic_char and Dic_char_lookup as temporary
    fixes for board_search. Should modify Board and Cross class
    instead.
  - create dic_code_t type
2006-01-01 19:51:00 +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
Antoine Fraboulet
c5889c1f66 adding new files 2006-01-01 19:34:31 +00:00
Antoine Fraboulet
dfde6fc246 emacs modes 2006-01-01 19:34:05 +00:00
Antoine Fraboulet
9e591c5845 - mainframe.cc
correct OnTextEnter event for Rack
2006-01-01 19:33:51 +00:00
Antoine Fraboulet
30d6cc0687 - eliottxt.cpp
add "a P" command for standard format printout
    add regexp testing
    add performance testing
2006-01-01 19:32:44 +00:00
Antoine Fraboulet
f6fa78c32c - driver
add "training_cross" test that checks horizontal scores in board_cross.cpp
    add several load/save tests
    add regexp test

  - Corrections
       training_search.ref : correcting reference file - 5 points instead of 4 on (Eh, En, Es, Ex)
       training_back.ref : sorting order (linked to points bug - insertion order in list)
       duplicate_2_ai.ref : correct score, change the whole game
       freegame_passing.ref : correct score (JEUNE H11 +2 : 45 -> 47)
       freegame_3_ai.ref : correct score 13:CAPEYE+4, 14:VOLETE+3, 16:FULL+2, 17:VIDE+5
2006-01-01 19:25:10 +00:00
Antoine Fraboulet
ce94c42724 configure.in
- add AC_HELP_STRING formatting
   - add --enable-profile flag, must be used to ensure that search performance
     does not degrade over time
   - debug is disabled by default
   - switch to wxwidgets 2.6

m4/wxwin.m4 : update to wxwidgets 2.6 m4 macro
2006-01-01 19:23:05 +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
240d106a9d - correct comment, removing loading game from training mode 2005-12-27 09:23:08 +00:00
Antoine Fraboulet
d607d100fd - change font for debug display, should change BagFrame display soon 2005-12-27 09:19:10 +00:00
Antoine Fraboulet
644653be0a - add regression test for Game::load - this test currently fails with a segfault 2005-12-27 09:13:48 +00:00
Antoine Fraboulet
b7f5f46391 - correct Game::back() and regression test 2005-12-27 01:07:54 +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
8e93c14f92 - correct +1 in history size 2005-12-27 01:06:12 +00:00