From news-rocq.inria.fr!univ-lyon1.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!newsxfer.itd.umich.edu!news.itd.umich.edu!stimpy!jklewis Thu Sep 14 20:41:21 1995 Article: 2302 of rec.games.corewar Path: news-rocq.inria.fr!univ-lyon1.fr!jussieu.fr!math.ohio-state.edu!howland.reston.ans.net!newsfeed.internetmci.com!newsxfer.itd.umich.edu!news.itd.umich.edu!stimpy!jklewis From: jklewis@stimpy.us.itd.umich.edu (John Kipling Lewis) Newsgroups: rec.games.corewar Subject: Re: Request Date: 13 Sep 1995 23:27:56 GMT Organization: University of Michigan Lines: 78 Message-ID: <437pds$gld@lastactionhero.rs.itd.umich.edu> References: <43229i$bqn@geraldo.cc.utexas.edu> <435fg7$llk@news.mainelink.net> NNTP-Posting-Host: stimpy.us.itd.umich.edu X-Newsreader: TIN [version 1.2 PL2] jimc@mainelink.net wrote: : OK. And for those of us who are new to Corewar, what is : pspace? Pspace is a non-volatile core area. Between games in the 100 battle series, you can use this area to record information. An example of this is below: ;redcode-94b ;author John K. Lewis ;strategy "Smart" program. Uses P-Space to remember last fight. ;name Obvious result ldp #0,#0 ; load in last result prog ldp #1, #0 ; load in last program (1-4) seq #1, -2 ; stick with a winner add #1, prog ; if we lost try next program seq #0,prog mov.ba prog, 1 ; grab program pointer jmp.a 1, 0 ; eventual pointer jmp.a rusty ; index of choices jmp.a pidge jmp.a impring rusty stp #1,#1 sight add #-25,#0 jmz.a -1,@sight add #100,sight mov tib,>sight mov tob,>sight mov tic,>sight mov toc,>sight mov tac,>sight mov tuc,@sight add #-5,sight jmp @sight tib mov tac,<-2 tob djn -1,#7990 tic mov tac,<-3 toc djn -1,#7990 tac spl #0,-1 tuc mov 1,<-1 dat 0,0 dat 0,0 pidge stp #2,#1 mov dwarf,1000 mov dwarf+1,1000 mov dwarf+2,1000 mov dwarf+3,1000 jmp 996 inc equ #721 dwarf add inc,ptr mov.i 3,@ptr djn dwarf, #2200 ptr jmp #1,<100 impring stp #3,#1 spl 1 spl 1 spl 4 spl 2 jmp imp+2667*1 jmp imp+2667*2 jmp imp+2667*0 imp mov 0,2667 Path: ibmpcug!gwen.pcug.co.uk!dish.news.pipex.net!pipex!lade.news.pipex.net!pipex!tank.news.pipex.net!pipex!newsfeed.internetmci.com!newsxfer.itd.umich.edu!news.itd.umich.edu!stimpy!jklewis From: jklewis@stimpy.us.itd.umich.edu (John Kipling Lewis) Newsgroups: rec.games.corewar Subject: Re: P-Space Date: 13 Sep 1995 23:39:37 GMT Organization: University of Michigan Lines: 32 Message-ID: <437q3p$gld@lastactionhero.rs.itd.umich.edu> References: <434jq7$bls@agate.berkeley.edu> NNTP-Posting-Host: stimpy.us.itd.umich.edu X-Newsreader: TIN [version 1.2 PL2] Peter Young (pyoung1@uclink4.berkeley.edu) wrote: : Umm, exactly what is p-space (i.e. how does it work, what opcodes does it : use, and what good is it?), and where can I find information about it? : Thanks. STP - store to p space LDP - load from p space ;redcode-94b ;author John K. Lewis ;strategy "Smart" program. Uses P-Space to remember last fight. ;name Obvious result ldp #0,#0 ; load location 0 (last result) into the b field prog ldp #1, #0 ; load in last program number used (1-4) seq #1, -2 ; stick with a winner add #1, prog ; if we lost try next program seq #0,prog mov.ba prog, 1 ; grab program pointer jmp.a 1, 0 ; eventual pointer jmp.a rusty ; index of choices jmp.a pidge jmp.a impring rusty stp #1,#1 ;store the number 1 to Pspace location 1 pidge stp #2,#1 ;store the number 2 to Pspace location 1 impring stp #3,#1 ;store the number 3 to Pspace location 1 From news-rocq.inria.fr!univ-lyon1.fr!in2p3.fr!oleane!tank.news.pipex.net!pipex!newsxfer.itd.umich.edu!news.itd.umich.edu!stimpy!jklewis Wed Dec 13 10:29:10 1995 Article: 3298 of rec.games.corewar Path: news-rocq.inria.fr!univ-lyon1.fr!in2p3.fr!oleane!tank.news.pipex.net!pipex!newsxfer.itd.umich.edu!news.itd.umich.edu!stimpy!jklewis From: jklewis@stimpy.us.itd.umich.edu (John K. Lewis) Newsgroups: rec.games.corewar Subject: Re: Pspace Revalation !! (Get all Corewar info at http://www.ecst.csuchico.edu/~pizza/koth/) Date: 13 Dec 1995 00:07:05 GMT Organization: University of Michigan Lines: 51 Message-ID: <4al5f9$9v3@lastactionhero.rs.itd.umich.edu> References: <4ajchg$k9o@geraldo.cc.utexas.edu> <4al3p6$i8v@newsbf02.news.aol.com> NNTP-Posting-Host: stimpy.us.itd.umich.edu X-Newsreader: TIN [version 1.2 PL2] No need to be unhappy. It's all really simple, to wit: There are a large number of spaces outside of the core that you can use to save important numbers. One use of this space has been to choose between several strategies based on the performance of the last fight. LDP A, B ;where A is the location in P space and B is a value. (LoaD Pspace) STP A, B ;where A is the value and B is the P space location. (STore Pspace) An example of how you might use P-Space: ;redcode-94b ;author John K. Lewis ;strategy "Smart" program. Uses P-Space to remember last fight. ;name Obvious result ldp #0,#0 ; load in last result from P-Space location 0 prog ldp #1, #0 ; load in last program (1-4) from location 1 seq #1, -2 ; stick with a winner add #1, prog ; if we lost try next program seq #0,prog mov.ba prog, 1 ; grab program pointer jmp.a 1, 0 ; eventual pointer jmp.a rusty ; index of choices jmp.a pidge jmp.a impring jmp.a paper rusty stp #1,#1 ; store number "1" in P-Space location 1 A full version of this program exist online somewhere in France :-) DolphinCat (dolphincat@aol.com) wrote: : Pardon me, : But I have been to that web site and to pizza's corewar page and I do have : the FAQ. And I have browsed the ftp site at csua.berkeley.edu. : And if there is mention of PSPACE it is not easilly seen. : I apologize for seeming ask a repetitive and simple question but I did : make an effort to find an answer before posting to this newsgroup. : Thank you for pointing to it again though, I will endeavor to find the : reference(s) that you imply are there. : Wayne