From news-rocq.inria.fr!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!swsbe6.switch.ch!surfnet.nl!news.nic.surfnet.nl!howland.reston.ans.net!math.ohio-state.edu!news.physics.uiowa.edu!dunix.drake.edu!acad.drake.edu!pk6811s Tue Mar 5 13:40:09 1996 Article: 4135 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!swsbe6.switch.ch!surfnet.nl!news.nic.surfnet.nl!howland.reston.ans.net!math.ohio-state.edu!news.physics.uiowa.edu!dunix.drake.edu!acad.drake.edu!pk6811s From: pk6811s@acad.drake.edu Newsgroups: rec.games.corewar Subject: Clisson Lite Date: 4 Mar 96 09:01:22 CST Organization: Drake University, Des Moines, Iowa Lines: 103 Distribution: world Message-ID: <1996Mar4.090122@acad.drake.edu> NNTP-Posting-Host: acad.drake.edu Clisson, bane of the bomber-scanners. Here is a working version for your pleasure: ;redcode-94 ;name Clisson Lite ;kill Clisson Lite ;author P.Kline ;assert CORESIZE == 8000 ;strategy p-switching X with paper/imp PIN 1111 PFLAG equ 250 rstep equ 12 rincr dat -rstep,rstep*2 ; spray core to kill scanners raid mov rincr,@2 ; before launching paper mov rincr,*1 mov 150,*-150 sub rincr,-1 djn raid,#(8000/rstep)/3 jmp paperfx for 3 dat 0,0 rof imp equ 1143 space equ (2390) paperfx stp.ab #1,#PFLAG ; paper choice is permanent mov 0,-1 ; erase stp paper spl 1 mov -1,0 mov -1,0 s0 spl @0,space mov.i }s0,>s0 mov.i }s0,>s0 s1 spl @0,imp*2 mov.i }s1,>s1 spl #0 spl 1+imp mov.i #imp,*0 for 3 dat 0,0 rof Pmod equ 17 dat 0,+7820 ; first round PRESULT dat 0,+Pmod ; loss dat 0,-Pmod*2 ; win dat 1,0 ; tie start ldp.a #0,PRESULT ; pspace stuff PTEST ldp.ab #PFLAG,#0 ; get status add.b PTEST,*PRESULT ; update with result of last battle stp.b *PRESULT,#PFLAG ; store mov 0,-1 ; prevent accidental stores slt *PRESULT,#-(Pmod*2*200) ; status should never be less than this mod #Pmod,*PRESULT ; and it should always be mod this jmz wait1,*PRESULT ; if so - go to Clisson watch-for-bomb ; if too many losses or brainwash ; make permanent switch to paper jmz.a raid,*PRESULT ; after a win or loss, bomb core first jmp paperfx ; else start paper watch2 dat 0,0 dat 1,1 for 19 dat 0,0 rof q1 spl #0,<-10 ; this is the bomber-killer mov qb,