Hi,
On Sat, 28 Jan 2023 11:51:43 -0800, Francisco Jose Castillo Mogollon
wrote:
Hello everyone!
I am a fan of Redcode and passionate about this art. Last year I
participated in a local corewars tournament and this year I wanted to optimize the warrior I participated with. It is a version of Recon with bootstrap and decoy. I pass you the code. I appreciate any help, tips or ideas!!
Recon is really effective, but I can see a few opportunities. If you
haven't already, it's worth setting up a benchmark to test different
versions of CHaiNS. E.g. pick ~20 warriors from the Koenigstuhl top 50
to test against.
You could try different values of rStep to change the scan pattern.
There's a tool called Randy (available at
http://inversed.ru/CoreWar.htm)
which you can use to create multiple copies with different constants.
Then run them all against the benchmark. Also, try the same for Timer.
CHaiNS is detecting its own decoy, slowing it down. The scan compares locations which are 6 cells apart, so try changing the decoy so the
contents of decoy are the same as decoy+6, decoy+1 the same as decoy+7,
decoy+x the same as decoy+x+6, etc. Then try changing the boot distance
to avoid detect the decoy for as long as possible.
And by the way, ask yourself, if anyone has (or knows where to get) the
book "CoreWar Krieg der Kerner Handbuch fur Einsteiger" by Sascha Zapf,
in English!! (or Spanish) - Someone knows?
Unfortunately, the Handbook is only available in German, but there are
quite a few guides and tutorials covering similar topics in English.
Good luck with the tournament.
John
PS - have you tried submitting to the KOTH / SAL hills? CHaiNS might
score well on the No Pspace and Multiwarrior hills :-)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)