From news-rocq!jussieu.fr!fr.usenet-edu.net!usenet-edu.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.infi.net!not-for-mail Sun Aug 13 15:23:23 2000 Article: 11593 of rec.games.corewar Path: news-rocq!jussieu.fr!fr.usenet-edu.net!usenet-edu.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.infi.net!not-for-mail From: sorry@nospam.here (Terry Newton) Newsgroups: rec.games.corewar Subject: Re: Whatever happened to those evolving projects? Date: Sat, 12 Aug 2000 23:52:39 GMT Organization: InfiNet Lines: 98 Message-ID: <3995dadf.88012822@news.mindspring.com> References: <3992b36b.8621139@news.lrz-muenchen.de> <3993342D.B06E360@erols.com> <399569be.59047142@news.pilot.infi.net> <3995B67B.74C53378@videotron.ca> Reply-To: sorry@nospam.here NNTP-Posting-Host: nsvla010-1033.splitrock.net X-Newsreader: Forte Free Agent 1.1/16.230 Xref: news-rocq rec.games.corewar:11593 pk wrote: >What's Redmaker format? Like this... ;RedMaker Warrior ;name BgDe ;assert 1 jmn.ab # 1 , @ 621 sub.ba $ 702 , } 616 sne.x # 1 , { 1 spl.x { 748 , {-5 mov.ba $ 2 , #-5 spl.f # 600 , $-3 mov.i > 88 , <-6 djn.f $-1 , }-1 end (that's iteration 412977, evolved for coresize 800) Must be three comment lines, 2nd line must name a 4 letter name, the first 2 letters are species, last 2 are grid position. One of the lines must be an ;assert something or the display is totally messed up. Instruction lines must be in the form and spacing shown (position 1-3 instruction, 4-6 modifier, pos. 8 is first address mode, positions 9-13 first data, position 14 comma, position 16 2nd addr mode, 17 to end-of-line is 2nd data field). Generally the first char in each data field is either a minus or a space. Warrior must end with end. >Since it's in qb, i can produce probably a sub that you'll be able to >use(i don't promise it'll be more readable than if it had been done in >C, though) I thought the C was fine.. at least I think I was able to follow... mostly.... >One thing that'll make things easier will be running the program through >pmars to get the code listing. hmm... I'm trying to learn C and goofy windows stuff.. trying to get away from qbasic etc (except I always seem to drag it out when I need to actually get something done...) >Do you need PDS?? I don't think so.. > I think it's supposed to interprete faster than >compiler qb 4.5 programs, or something like that(maybe that PDS' IDE >lets you use the EMS, but not in compiled mode)... I could try >translating the program in PowerBasic... It is designed to compile as-is with First-Basic, an earlier version of PB (which was actually something else.. Turbo Basic if I recall) > It'd be faster, Actually it isn't, at least not enough to notice. Redmaker shells another program to do the actual battling (pmars), that is where most of the time is spent. I usually run the interpreted qbasic program as less problems with memory.. with some systems the compiled version doesn't have enough free dos ram available to shell pmars. > and it could >even be translated to PowerBasic/CC(console compiler), which is one of >the fastest compilers available(well, that's what pb & their customers >say) Now if Redmaker had its own built-in sub for running warriors.. but remember being a dos thing I can't put all the warriors in a big array.. they have to run from disk files unless the basic supports arrays bigger than 64K. It's really kind of futile though, even with shelling overhead it'd be unlikely that any built-in basic routine could compete with the speed of pmars.. so I'm saving that bit for when I rewrite it. Hopefully in C++ if I can figure that stuff out. But by all means hack one in there if you're interested, if you do I'd like to see it.. a basic corewar sim would be interesting from a programming standpoint. >> > I would be in favor of disallowing any handwritten parts in these >> >evolved warriors. >> >> yes... except for comment lines of course.. >Why? an artificial commenter would be way cool! 8p actually I wish there was more info recorded in the comments, at least generation, number of battles won and other basic data. Terry Newton If you want to email me, send it to wtnewton with an account on the domain nc5 infi net.