eliot/test/duplicate_joker_variant.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

229 lines
8.1 KiB
Text

Using seed: 14
[?] pour l'aide
commande> dj 1 1
mode duplicate
[?] pour l'aide
commande> a t
AK?EZEN
commande> j gENEZ h8
commande> a S
Score 0: 46
Score 1: 48
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 - - A K E N E S - - - - - - -
I - - - - - - - - - - - - - - -
J - - - - - - - - - - - - - - -
K - - - - - - - - - - - - - - -
L - - - - - - - - - - - - - - -
M - - - - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
commande> a l
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ?
8 2 2 3 13 2 2 2 8 1 0 5 3 5 6 2 1 6 5 6 6 2 1 1 1 1 2
commande> a p
Game: player 1 out of 2
Game: mode=Duplicate
Game: variant=joker
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 1 | AK?EZEN | AKENEs | H3 | 48 |
Rack 0: Z+IL?ENT
Rack 1: Z+IL?ENT
Score 0: 46
Score 1: 48
commande> j pLANTIEZ 3f
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - P - - - - - - - - - - - -
G - - L - - - - - - - - - - - -
H - - A K E N E S - - - - - - -
I - - N - - - - - - - - - - - -
J - - T - - - - - - - - - - - -
K - - I - - - - - - - - - - - -
L - - E - - - - - - - - - - - -
M - - Z - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
commande> a l
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ?
8 2 2 3 12 2 2 2 7 1 0 4 3 4 6 1 1 6 5 5 6 2 1 1 1 0 2
commande> a p
Game: player 1 out of 2
Game: mode=Duplicate
Game: variant=joker
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 1 | AK?EZEN | AKENEs | H3 | 48 |
2 | 0 | Z+IL?ENT | pLANTIEZ | 3F | 86 | *
Rack 0: DEDOTC?
Rack 1: DEDOTC?
Score 0: 132
Score 1: 134
commande> j DECODaT g5
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - P - - - - - - - - - - - -
G - - L - D E C O D A T - - - -
H - - A K E N E S - - - - - - -
I - - N - - - - - - - - - - - -
J - - T - - - - - - - - - - - -
K - - I - - - - - - - - - - - -
L - - E - - - - - - - - - - - -
M - - Z - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
commande> a l
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ?
7 2 1 1 11 2 2 2 7 1 0 4 3 4 5 1 1 6 5 4 6 2 1 1 1 0 2
commande> a p
Game: player 1 out of 2
Game: mode=Duplicate
Game: variant=joker
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 1 | AK?EZEN | AKENEs | H3 | 48 |
2 | 0 | Z+IL?ENT | pLANTIEZ | 3F | 86 | *
3 | 0 | DEDOTC? | DECODaT | G5 | 79 | *
Rack 0: RABEGE?
Rack 1: RABEGE?
Score 0: 211
Score 1: 213
commande> j dEPLANTIEZ 3d
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - P - - - - - - - - - - - -
G - - L - D E C O D A T - - - -
H - - A K E N E S - - - - - - -
I - - N - - - - - - - - - - - -
J - - T - - - - - - - - - - - -
K - - I - - - - - - - - - - - -
L - H E B E R G E A - - - - - -
M - - Z - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
commande> a l
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ?
6 1 1 1 9 2 1 1 7 1 0 4 3 4 5 1 1 5 5 4 6 2 1 1 1 0 2
commande> a p
Game: player 1 out of 2
Game: mode=Duplicate
Game: variant=joker
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 1 | AK?EZEN | AKENEs | H3 | 48 |
2 | 0 | Z+IL?ENT | pLANTIEZ | 3F | 86 | *
3 | 0 | DEDOTC? | DECODaT | G5 | 79 | *
4 | 1 | RABEGE? | hEBERGEA | L2 | 72 | *
Rack 0: X?MFETR
Rack 1: X?MFETR
Score 0: 231
Score 1: 285
commande> h p
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - P - - - - - - - - - - - -
G - - L - D E C O D A T - - - -
H - - A K E N E S - - - - - - -
I - - N - - - - - - - - - - - -
J - - T - - - - - - - - - - - -
K - - I - - - - - - - - - - - -
L - - E - - - - - - - - - - - -
M - - Z - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
commande> a p
Game: player 1 out of 2
Game: mode=Duplicate
Game: variant=joker
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 1 | AK?EZEN | AKENEs | H3 | 48 |
2 | 0 | Z+IL?ENT | pLANTIEZ | 3F | 86 | *
3 | 0 | DEDOTC? | DECODaT | G5 | 79 | *
Rack 0: RABEGE?
Rack 1: RABEGE?
Score 0: 211
Score 1: 213
commande> h p
commande> a g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A - - - - - - - - - - - - - - -
B - - - - - - - - - - - - - - -
C - - - - - - - - - - - - - - -
D - - - - - - - - - - - - - - -
E - - - - - - - - - - - - - - -
F - - P - - - - - - - - - - - -
G - - L - - - - - - - - - - - -
H - - A K E N E S - - - - - - -
I - - N - - - - - - - - - - - -
J - - T - - - - - - - - - - - -
K - - I - - - - - - - - - - - -
L - - E - - - - - - - - - - - -
M - - Z - - - - - - - - - - - -
N - - - - - - - - - - - - - - -
O - - - - - - - - - - - - - - -
commande> a p
Game: player 1 out of 2
Game: mode=Duplicate
Game: variant=joker
Game: history:
N | P | RACK | SOLUTION | REF | PTS | BONUS
===|===|==========|================|=====|=====|======
1 | 1 | AK?EZEN | AKENEs | H3 | 48 |
2 | 0 | Z+IL?ENT | pLANTIEZ | 3F | 86 | *
Rack 0: DEDOTC?
Rack 1: DEDOTC?
Score 0: 132
Score 1: 134
commande> a l
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ?
8 2 2 3 12 2 2 2 7 1 0 4 3 4 6 1 1 6 5 5 6 2 1 1 1 0 2
commande> q
fin du mode duplicate
commande> q