From news-rocq.inria.fr!jussieu.fr!oleane!newsxfer3.itd.umich.edu!cpk-news-hub1.bbnplanet.com!chicago-news-feed2.bbnplanet.com!news.bbnplanet.com!uwm.edu!msunews!mooredav Sun Mar 1 16:25:45 1998 Article: 8466 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!oleane!newsxfer3.itd.umich.edu!cpk-news-hub1.bbnplanet.com!chicago-news-feed2.bbnplanet.com!news.bbnplanet.com!uwm.edu!msunews!mooredav From: mooredav@cps.msu.edu (David Matthew Moore) Newsgroups: rec.games.corewar Subject: Re: p space confusion Date: 1 Mar 1998 07:37:18 GMT Organization: Michigan State University Lines: 137 Distribution: world Message-ID: <6db37e$h77$1@msunews.cl.msu.edu> References: <199802280427.XAA22271@valhalla.stormking.com> NNTP-Posting-Host: kiska.cps.msu.edu X-Newsreader: TIN [version 1.2 PL2] X-MD5: 9e42f147f963e0b7681bf936d375afce jwilkinson@mail.utexas.edu wrote: : >>For an additional exercise, write a vampire that can _read_ your : >opponent's : >>pspace! : >> : >>- David : > : >Is it really possible to do that? : Yeah, the real question is, could it somehow be useful... On that note, here's a vampire that can find its enemy's pspace location! ;redcode-94 ;name Mind Reader ;author David Moore ;assert 1 ;strategy Launch an imp-paper; ;strategy if paper loses then assume opponent used "He Scans Alone" ;strategy but there is a trick! ;strategy First use a vampire to find his pspace location; ;strategy then switch to an anti-HSA warrior. ;strategy Anti-HSA can brainwash with different numbers until it finds the right one. ;strategy If that number forces my opponent to use HSA ;strategy then continuous brainwash with 100% wins :) Works great against Electric Head! ;;;;;;;;;;;;;;;;; ; ; ; paper ; ; ; ;;;;;;;;;;;;;;;;; d1 equ 3359 d2 equ 2365 paper spl 1, -1 spl #0, 0 spl imp+(2*((CORESIZE+1)/3)), 0 spl imp+((CORESIZE+1)/3), 0 imp mov.i #(CORESIZE+1)/3, *0 dat 0,0 dat 0,0 for 20 dat 1,1 rof dat 0,0 dat 0,0 ;;;;;;;;;;;;;;;;; ; ; ; vampire ; ; ; ;;;;;;;;;;;;;;;;; Pstore equ 123 step equ 15 ; multiple of 5 vamp mov @0, @fang add incr, fang jmz.a vamp, read ; know when opponent is trapped jmz.b #0, read ; search for last nonzero pspace ploc stp.ab read, #Pstore ; capture the prize! incr jmp #-step, #step ; wait for the next fight fang jmp trap+5-step, step-5 trap spl #0, #0 spl #0, #0 read ldp.ab #0, #0 dat {0, 0 for 10 dat 0,0 rof ;;;;;;;;;;;;;;;;; ;; ;; ;; P-logic ;; ;; ;; ;;;;;;;;;;;;;;;;; Key equ 127 Strat equ 131 binc equ 3359 dat 0, 0 table dat 0, CORESIZE/2 dat 0, 0 dat 0, 0 main ldp.a #0, table ldp.ba store, store add.ba *table, store store stp.ab #0, #Strat slt.a #(CORESIZE/2)-1, store jmp paper, bptr mov bwash, >bptr bptr jmp anti, 1 end main