This patch adds a new command line switch to pMARS 0.9.0:
-P This option makes pMARS use an alternative algo
rithm for positioning warriors. This algorithm uses
all possible combinations of starting order and
position in a random sequence, and will not use the
same combination twice unless all the combinations
have already been used. If the -r option is not
given, the number of rounds fought will be the num
ber of all possible combinations. Trying to use
this option with more (or less) than two warriors
causes an error.
As a side effect, it fixes some bugs and oddities in clparse.c so that coreSizeTooSmall and pSpaceTooBig messages are emitted correctly. A new configuration option PERMUTATE is added and turned on by default. If it is turned off, all
new features are disabled (the bug fixes still apply).
This patch was originally written for pMARS 0.8 and was used in Ilmari's Mini-Tournament #2.
(The previous revision of this patch lacked a crucial bit and segfaulted whenever the -P option was used.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
None
This patch adds a new command line switch to pMARS 0.9.0:
-P This option makes pMARS use an alternative algo
rithm for positioning warriors. This algorithm uses
all possible combinations of starting order and
position in a random sequence, and will not use the
same combination twice unless all the combinations
have already been used. If the -r option is not
given, the number of rounds fought will be the num
ber of all possible combinations. Trying to use
this option with more (or less) than two warriors
causes an error.
As a side effect, it fixes some bugs and oddities in clparse.c so that coreSizeTooSmall and pSpaceTooBig messages are emitted correctly. A new configuration option PERMUTATE is added and turned on by default. If it is turned off, all
new features are disabled (the bug fixes still apply).
This patch was originally written for pMARS 0.8 and was used in Ilmari's Mini-Tournament #2.
(The previous revision of this patch lacked a crucial bit and segfaulted whenever the -P option was used.)
This patch is in 0.9.2.