; This is the settings file for RedMixer 1.0d ; pmars parameters... pmars unix pm8kb ;hack script to run Linux pmars from DosEmu ; ; to make that work I use script /usr/local/bin/pm8kb containing: ; ; #!/bin/bash ; cd /media/ramdisk/work # must change to where redmixer is ; parms=$* ; parms=${parms//SOUP8KB/SOUP8KB\/} # must match soup dir name ; parms=${parms//WILKIES/WILKIES\/} # must match test dir name ; pmars $parms ; ; Note that the soup and benchmark directories must be hardcoded ; as the \ path separater gets stripped by the calling process, ; directory and bench warrior names must be upper case and 8.3 format. ; The control-C stop method does not work (not in a shell to pick it up) ; so to stop the evolver by deleting the "deleteme" file. Also note that ; pm8kb needs to be in a "path" directory to avoid exceeding the command ; line limit of 125 characters. It's a hack! but can be a bit faster than ; emulating the pmars program. Comment next pmars line to enable. ; ;pmars pmars ;path\name of pmars binary coresize 8000 ;size of core processes 8000 ;how many processes are allowed cycles 80000 ;how many cycles to run per round rounds 20 ;how many rounds to run per battle maxlen 100 ;maximum warrior length doublefixed no ;if yes then do double-fixed battles ; file/start parameters... soupdir SOUP8KB ;name of directory to put warriors in deletefile DeleteMe ;name of file to delete to stop tempbase rmtemp ;base name for temp files redcodeline redcode ;redcode comment line authorline anonymous ;author comment line versionline RedMixer 1.0d-8Kbig-2 ;strategy Evolved by line (use to track parms) minstartsize 1 ;minimum instructions for new warriors testnew no ;if yes test new warriors testwarrior test.red ;name of warrior to test new warriors against mintestscore 150 ;minimum score to pass the new warrior ; soup/display/benchmark parameters... xsize 77 ;number of warriors in X-dimension ysize 46 ;number of warriors in Y-dimension displaysoup yes ;if yes then show the soup and user interface colormethod 2 ;0=color by size 1=by origin 2=by species colorshift 0 ;to offset colors if needed textcolor 2 ;color used for border and stat text pmarsv unix xterm -e pmv8kb ;path\name of pmarsv program ; this is a similar hack to run the linux pmarsv program from DosEmu, ; as it seems the 50-line interpreted version doesn't leave enough ; free mem to run the dos pmarsv with coresize 8000. ; /usr/local/bin/pmv8kb contains... ; ; #!/bin/bash ; cd /media/ramdisk/work # change to where RedMixer is ; parms=$* # get command line parameters ; parms=${parms//SOUP8KB/SOUP8KB\/} # must match soup dir name ; pmarsv $parms ; echo "----- press a key -----" ; read -n 1 nothing ; ; RedMixer doesn't clear the key buffer so if enter is mashed to ; generate multiple keystrokes it "pushes" through RedMixer's own ; press any key when doing battles. These hacks... whatever it takes. ; vparms -v 114 ;rounds and display parms for pmarsv listprog ;path\name of external list program benchdir WILKIES ;directory containing test warriors benchrounds 250 ;number of rounds for benchmark battles benchfixed yes ;if yes then use fixed sequence for benchmark benchprog ;path\name of external benchmark program ; redcode strings... maintain field structure... instructions spl spl spl spl spl mov mov mov instructions mov dat dat dat jmp jmn jmz djn instructions sne seq add sub mul div mod modifiers i i i f x a b ab ba adrAmodes # $ @ * < > { } adrBmodes # $ @ * < > { } ; mutation parameters... deletechance .005 ;chance of deleting a line insertchance .005 ;chance of inserting a line duplinechance .3 ;chance of inserted line being previous instchance .01 ;chance of changing an instruction modchance .015 ;chance of changing a modifier modeAchance .02 ;chance of changing A-field mode dataAchance .05 ;chance of changing A-field data dataAincdec .5 ;chance of inc/dec A-field data dataAsmall .3 ;chance of using small A-field number modeBchance .02 ;chance of changing B-field mode dataBchance .05 ;chance of changing B-field data dataBincdec .5 ;chance of inc/dec B-field data dataBsmall .3 ;chance of using small B-field number endchance .05 ;chance of changing end number endincdec .5 ;chance of inc/dec end number end0chance .5 ;chance of using end 0 ; crossover/species parameters... crossmode 1 ;0=none 1=same species 2=same origin 3=any attraction yes ;if yes pick surrounding mate with most wins flipstart .5 ;chance of starting with winning warrior flipitemchance .01 ;chance of flipping per item fliplinechance .05 ;chance of flipping per line randomspecies yes ;if yes then use random numbers for species tag randomtagrange 20 ;range of each number in random species tags specieschanges 5 ;percent instruction changes for same species ; end of parameters