eliot/test/freegame_play.ref
Olivier Teulière 3c7a84d543 Support saving/loading games (any game type) in XML format.
Status:
It works well, but there are still a few details to improve/fix

More details about the changes:
 - New dependency on Arabica and Libxml2 to parse the XML
 - Loading the old format is still supported for this release, but won't be supported anymore in the next one
 - Games are now only saved in the new format
 - In training mode, the player is now created externally, like in the other modes
 - Avoid using GameIO (the one from game/) whenever possible
 - Do not use a FILE* argument anymore when loading a game
 - Throw and catch exceptions correctly when a game cannot be loaded or saved
 - The non-regression tests now use a new method to print the game history
2009-11-29 16:01:31 +00:00

78 lines
2.3 KiB
Text

Using seed: 7
[?] pour l'aide
commande> l 1 0
mode partie libre
[?] pour l'aide
commande> a t
AMLUNE?
commande> p
commande> a t
AELMNU?
commande> a p
Game: player 1 out of 1
Game: mode=Free game
Game: variant=unknown
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 0 | AMLUNE? | (PASS) | - | 0 |
Rack 0: AELMNU?
Score 0: 0
commande> p
commande> j MALvENU h4
commande> a t
ESEASTU
commande> a p
Game: player 1 out of 1
Game: mode=Free game
Game: variant=unknown
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 0 | AMLUNE? | (PASS) | - | 0 |
2 | 0 | AELMNU? | (PASS) | - | 0 |
3 | 0 | AELMNU? | MALvENU | H4 | 68 | *
Rack 0: ESEASTU
Score 0: 68
commande> p
commande> j SAUTEES 11H
commande> a p
Game: player 1 out of 1
Game: mode=Free game
Game: variant=unknown
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 0 | AMLUNE? | (PASS) | - | 0 |
2 | 0 | AELMNU? | (PASS) | - | 0 |
3 | 0 | AELMNU? | MALvENU | H4 | 68 | *
4 | 0 | ESEASTU | (PASS) | - | 0 |
5 | 0 | AEESSTU | SAUTEES | 11H | 72 | *
Rack 0: MIWBRAE
Score 0: 140
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - - - - - - - - - - - - - -
G - - - - - - - - - - - - - - -
H - - - M A L v E N U S - - - -
I - - - - - - - - - - A - - - -
J - - - - - - - - - - U - - - -
K - - - - - - - - - - T - - - -
L - - - - - - - - - - E - - - -
M - - - - - - - - - - E - - - -
N - - - - - - - - - - S - - - -
O - - - - - - - - - - - - - - -
commande> q
fin du mode partie libre
commande> q