;redcode ;name Plus ultra ;author G.Labarga ;assert 1 ;strategy Qscan-> Extended adaptative switcher: stone/imp or blur-style scanner ;strategy Using Metcalf's Qscan from Vala. Just changed it very slightely. ;strategy Redcoders Frenzy Tournament, round 14 "Extended '88". November 2003. ; Vulnerable to Qscans and paper+stone ; Extended adaptative switcher, Results record=2. ; It tries to compensate the lack of patience of the adaptative switcher ; Saves in p-space a table with the strats to execute after every two ; consecutive results ; It should increase the score against table-based switchers ;saving three results would be great, but a bit too big. ;i don't know if is better saving in the table strategies or switches, (like p-key's brain does) ;p-space: ( 0 -> result ) ; 491-499 -> to-do table ; 490 -> last table cell used ; 489 -> previous result ; TO-DO table: cell=491+3*prev+result ; 491: l l ;after two consecutive loses ; 492: l w ;after loss and win ; 493: l t ;after loss and tie ; 494: w l ;... ; 495: w w ; 496: w t ; 497: t l ; 498: t w ; 499: t t ; EQU list ;stone/imp bstep equ 67*2 trail1 equ -1200 trail2 equ -1600 d1 equ hit+bstep d2 equ hit+2*bstep stloc equ self+1100 iploc equ stloc+401 ifrst equ 200 ;scanner cmod equ 4 sstep equ 19*2*cmod gate equ loop-2 ;p-brain final equ igo ;<”ltima instruccin> p_prev equ 489 p_last equ 490 strat1 equ boot ;Stone/imp strat2 equ hool ;Blur scanner ;Qscan qf equ (qgo+1*qs) qd equ 135 qs equ (2*qd) qi equ 7 qr equ 7 qbomb dat <-49,<50 dat #12*qs ;a qp1 dat #5*qs ;b qp2 dat #2*qs ;c qp3 ; dat #1*qs ;d qgo cmp qd+qf, qf ;d jmp qskip,