Ready Gladiator 1

Ready Gladiator 1

200 points

Description Can you make a CoreWars warrior that wins? Your opponent is the Imp. The source is available here. If you wanted to pit the Imp against himself, you could download the Imp and connect to the CoreWars server like this: nc saturn.picoctf.net port number < imp.red To get the flag, you must beat the Imp at least once out of the many rounds.

Note: This challenge launches an instance on demand.


I tried asking chatGPT to help me understand the syntax and what to do, but it gave me 3 programs that just lost with a weird syntax.

So the next thing I did is google, a reddit thread where someone asks how to beat the Imp gave the instructions:

sub 1, -10
jmp -1
;redcode
;name Paper-Scissors-Rock
;assert 1

sub 1, -10
jmp -1

end

and this code won 40 out of a 100 wins and got me the flag (still don't understand the game mostly...)

picoCTF{your flag}