;redcode ;name dodgem6 ;author Steve Newman (snewman@cs.stanford.edu) ;strategy Write out a bunch of flag values and wait for the enemy ;strategy to bomb one. Analyze enemy's bomb location. Copy a dwarf ;strategy type program to a location that appears safe and transfer ;strategy control to it. Large size is due to a simple one-shot ;strategy redundancy mechanism that helps resist damage in early stage ;strategy of play. bomb EQU start-60 ;Presumed to be a DAT 0,0 instruction. ;Write a flag value (77) to 64 well-scattered locations. start SUB #248,-15 MOV #77,<(start-15) MOV #77,<(start-15) DJN start,#32 ;Now repeatedly check the 64 locations until one of them is altered. search SUB #248,start CMP #77,= 4) to deal with programs that start bombing immediately ;behind themselves. copyOffset EQU 2399+end1-dwarf1 copyLen EQU end1-start1+1 sum DAT #122 cargo1 ADD #copyOffset,start copyLp1 MOV