• [88] Gothik

    From John Metcalf@21:1/5 to All on Mon Dec 6 10:52:40 2021
    Gothik is a replicating scanner similar to Infiltrator, Sneaky and Paper
    With Eyes. An earlier version reached first place with suicidal steps -
    it wiped itself if it didn't find the opponent within 826 cycles!

    I ended up writing a program (https://corewar.co.uk/metcalf/gopt.c) to
    optimize the scan time and included a SPL 0 JMP 0 warrior in the
    benchmark to filter out suicidal steps.

    ;redcode
    ;name Gothik
    ;author John Metcalf
    ;strategy replicating scanner
    ;assert CORESIZE==8000

    length equ 34
    gap equ 15
    step equ 3351
    time equ 1281
    hit equ 3
    first equ paper+hit-step*time

    paper mov #length, length
    scan add #step+1, sptr
    mov bmb, <sptr
    sptr jmz scan, <first+1
    copy mov <paper, <sptr
    mov <paper, <sptr
    jmn copy, @2
    dest spl @sptr
    jmz @paper, paper
    bmb dat <1144, <1-gap

    end scan+1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)