Menu

#1 Adds an option to permutate starting positions to pMars0.9.0

open
nobody
None
5
2000-09-29
2000-09-29
No

Discussion

  • Ilmari Karonen

    Ilmari Karonen - 2000-09-29

    None

     
  • Ilmari Karonen

    Ilmari Karonen - 2000-09-29

    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.)

     
  • Ilmari Karonen

    Ilmari Karonen - 2001-01-04

    This patch is in 0.9.2.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.