From news-rocq.inria.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!sunsite.doc.ic.ac.uk!info-server.surrey.ac.uk!usenet Tue Apr 2 10:47:17 1996 Article: 4630 of rec.games.corewar Path: news-rocq.inria.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!sunsite.doc.ic.ac.uk!info-server.surrey.ac.uk!usenet From: Ian Oversby Newsgroups: rec.games.corewar Subject: Papery & Pretentious Date: Mon, 01 Apr 1996 11:53:30 +0100 Organization: University of Surrey, Guildford, England Lines: 147 Message-ID: <315FB5AA.3BB2@surrey.ac.uk> NNTP-Posting-Host: kira.ee.surrey.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (X11; I; SunOS 5.4 sun4d) I have just realized, I haven't posted any of my older warriors. Anyway, for your interest, Papery and Pretentious, my first two reasonably successful warriors on the beginners hill, both having made it to the top five (three?) ;redcode-b ;name Papery ;author Ian Oversby ;strategy Just testing basic paper / stone ;strategy hopefully for part of P-Warrior ;assert 1 MOV stone+3, -1, }-1 MOV bomb, }2421 ; anti-vamp MOV bomb, {3517 ; more anti-vamp MOV 1, >1 DAT >1, >1 This is a basic paper/stone using random constants. I had intended to run several tests to pick the best constants but I never got around to it. It uses a pseudo-timescape structure that is (unfortunately) much weaker than the real thing. It allows more lines for bombing in the same sized structure though. ;redcode-b quiet ;name Pretentious v0.2 ;author Ian Oversby ;strategy v0.1 Scanner -> Paper ;strategy v0.2 (Hopefully) improved scanner ;assert 1 res LDP.AB #0, #0 str LDP.A #111, str1 ; load strategy in use LDP.A #157, str2 ; have we lost before? SNE.AB #0, res ; check result JMP.B lost win STP.AB #0, #157 JMP.B sel lost JMN.A change, str2 ; two losses in a row STP.AB #1, #157 JMP.B sel change STP.AB #0, #157 ADD.A #1, str1 ; lost change sel MOD.A #2, str1 ; secure result STP.AB str1, #111 str1 JMP.B @0, auntie DAT.F 0, pboot str2 DAT.F 0, 0 pboot MOV.I pstart+10, -1, }-1 MOV bomb, }2421 ; anti-vamp MOV bomb, {3517 ; more anti-vamp MOV 1, }1 DAT >1, }1 auntie MOV.I loop+14, cptr JMP.B -1, <-10 b2 DAT.F #4, #5 cons DAT.F #3359, #3359 This is a P-warrior that selects between a Paper and a Scanner depending on how the current strategy is working. I based the switching logic on Jack in the Box and then altered it so that I only switch after two losses in a row. I don't think this adds anything to the score as I just do worse against fast P-switchers and when I lose twice with a successful strategy I immediately lose twice again with the unsuccessful strategy. The scanner is Auntie - I don't think it should boot after all as I waste lots of time carpeting my own decoy :-( -- ------------------------------------------------------------------------- E-mail : ee31io@surrey.ac.uk Disclaimer : No-one, but me, believes any of this. -------------------------------------------------------------------------