Códigos

Aquí te dejamos unos cuantos códigos de ejemplo

Autor de los códigos: Neogryzor

CoreWarUCM_logo


;redcode-nano
;name Afterburner
;author Neo
;assert CORESIZE==80
;strategy DAT incendiary bomber

loop:        mov bm,@ref
ref:           mov bm,*8 ;@13
                  add #10,ref
                  jmp loop,<-7
bm:          mov {5,}-10 ;mov.i #5,1 ;1,}-5 ;mov >0,-5 ;mov }-5,*-5
end loop


;redcode-nano
;name Carbon tetrachloride
;author Neo
;assert CORESIZE==80
;strategy paper
;(optimized)

step equ -34 ;28

start: spl 1
pap:         spl @0,<step
                  mov }-1,>-1
                  mov }-2,>-2
bm:          djn.f -2,{-1 ;>pap
end start


;redcode-nano
;name Kore Klear
;author Neo
;assert CORESIZE==80
;strategy Backwards fast clear

clr:       spl #-50,<-4
              mov {-1,<-1
              mov <-2,{-2
              djn.f -2,<-3
end clr


;redcode-nano
;name Dwarfie
;author Neo
;assert 1
;strategy stone

ptr equ start-2
step1 equ (-8)
step2 equ (-30)
src1 equ (17)
src2 equ (-2)
trail equ (10)

start:    spl #step1,<step2
               add.f start,ptr
               mov {src1,>ptr
               mov >src2,}ptr
               djn.f -3,{trail
end start


;redcode-nano
;name Blind Runner I
;author Neo
;assert 1
;strategy Self-moving bomber

INI:        SPL CO2
AT:         NOP AT,AT+8
               MOV.I {800,1601
               MOV.I {1802,2603
               MOV.I {2803,3604
CO2:      MOV.I }AT,>AT
               MOV.I }AT,>AT
               MOV.I }AT,>AT
               MOV.I }AT,>AT
END INI