Sections
Home
Hills
Infinite Hills
Tournaments
Software
Evolving
Optimizer
Community
Newsletter
Discussion
History
Sections
 
For Beginners
First Steps
FAQ
Guides
Lexicon
Benchmarks
For Beginners
> Home > optiMAX > FAQ

optiMAX - FAQ

still in progress but here are the first Q/A's

What do I need to run optiMAX on my PC?

At first you have to install Perl. For Windows XP ActiveState's ActivPerl is neccessary. For Unix you can use GnuPerl. And then download the optimax zip-file.
How to start optiMAX?

wperl remote.pl
- starts the remote control under Windows
perl optimax.pl -o warrior.red
- starts to optimize the warrior
perl optimax.pl -s warrior.red
- remove all ;optimax lines

Which are the commands to set the optimizer specifications?

;optimax 1234
- which phase will optimax use
;optimax work svs_self
- which working directory wil be used. The directory will be generated if not existing
;optimax suite fsh94nop0.2
- which benchmark will be used
;optimax rounds 1 200 200 200
- the rounds for each phase
;optimax random value
- initialize the random generator with the defined value
;optimax phase1 cyclemin nn%
- the warrior must survive at least nn% of max. cycle to be passed to phase 2
;optimax phase2 fsh94nop0.2/pwi/unheard.red
- set the phase 2 opponent
;optimax phase2 80
- set a static threshold for phase 2
;optimax phase2 90%
- set a dynamic threshold for phase 2
;optimax phase3 phase3.lst
- set the opponents for phase 3 listed in the lst-file
;optimax phase3 sai:sbi
- set the opponents for phase 3 by strategies
;optimax phase3 120
- set a static threshold for phase 3
;optimax phase3 99%
- set a dynamic threshold for phase 3
;optimax phase3 top15
- set the size of the topscore table
;optimax phase4 100%
- set the percentage of warriors of the fsh for benchmarking. 50% means fighting against the top 50 warriors of the fsh.
;optimax phase4 top15
- set the size of the topscore table


Which are the commands to generate constants?

Flat Operators
!(A-Z)
- generates random numbers between the values A to Z.
!(datei.lst)
- read values from the lst-file in the directory tables in a random order. Can be named with !(datei.lst"comment")

Deep Operators
!{A-Z}
- generates all values between A and Z. Call recursiv further'Deep Operators'.
!<datei.lst>
- read values from a text file line by line. Call recursiv further'Deep Operators'. Here is also the possibility to read opcodes from a file
!<datei.erw:n>
- reads values of column n from a text file line by line. The columns must be separated by |. It is also possible to read text (opcodes, modifiers etc.) instead of values. Call recursiv further'Deep Operators'.
![a|b|c|d]
- read the values assigned in the command. Call recursiv further'Deep Operators'.
Some sample warriors

;redcode-94nop
;name Wipe Uncle
;author Christian Schmidt
;strategy qscanner and paper
;strategy based on Benji's Revenge
;assert 1

;optimax 1234
;optimax work wuncle2b
;optimax rounds 1 100 200 200
;optimax suite fsh94nop0.2

;optimax phase2 fsh94nop0.2/cds/herbal.red
;optimax phase2 150

;optimax phase3 top20
;optimax phase3 sbi:cds
;optimax phase3 140

;optimax phase4 top20
;optimax phase4 100%

bStep1  EQU     !(50-7950)
bStep2  EQU     !(50-7950)
pStep1  EQU     !(50-7950)
pStep2  EQU     !(50-7950)
pStep3  EQU     !(50-7950)
pBo     EQU     !(50-7950)


paper   spl     1
qtab2   spl     1
        mov.i   -1

        mov.i   <2,    {2
        mov.i   <1,    {1
        jmp     zero+pBo, pap+14

pap     spl     @0,    <pStep1
        mov     }-1,    >-1
        mov     }-2,    >-2
        spl     pStep2, 0
        mov     >-1,    }-1
        spl     @0,     <pStep3
        mov     }-1,    >-1
        mov.i   #1,     {1
        mov.i   #bStep1,<1
        djn.b   -3,     #bStep2

© 2002-2005 corewar.info. Logo © C. Schmidt
optiMAX
FAQ
Downloads
94nop Hill Benchmark
Tiny Hill Benchmark
LP Hill Benchmark
94x Hill Benchmark
94 Tourney Hill Benchmark
88 Hill Benchmark
88 Tourney Hill Benchmark
optiMAX