Author Topic: Core Wars  (Read 24160 times)

0 Members and 1 Guest are viewing this topic.

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Core Wars
« Reply #30 on: March 15, 2012, 05:49:15 pm »
Quite the accomplishment builderboy!
"I still like fruit ninja though :D"
But this definitely has caught my eye... So i will download!
* hellninjas wonders if core wars is on the ipod app store o.o

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: Core Wars
« Reply #31 on: March 15, 2012, 10:36:52 pm »
Quite the accomplishment builderboy!
"I still like fruit ninja though :D"
But this definitely has caught my eye... So i will download!
* hellninjas wonders if core wars is on the ipod app store o.o

Sadly, there isnt, but I managed to port pMars to iOS. You need to be jailbroken to run it though. I will upload to my repo in a little bit. iNinjas Repo.
« Last Edit: March 15, 2012, 10:37:09 pm by C0deH4cker »

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: Core Wars
« Reply #32 on: March 17, 2012, 04:51:38 pm »
I uploaded it to the repo. It is a package called pMARS. To visually view the core it takes quite a few steps:

1. In Cydia, download the pMARS package from this repo.
2. Download all of the packages in the X Windows section, and also get WindowMaker.
3. Get iSSH from the AppStore (or somewhere else...).
4. Add a new configuration. Set the following fields:
    Description: root
    Host: 127.0.0.1
    Port: 22
    Login: root
    Password: alpine (unless you changed this)
5. Click Save and then open the new connection.
6. Type: cd /var/root/src/redcode/warriors
7. Press the 'X' in the top-right.
8. Press the other 'X' that appears in the top-right. When it asks you to start the X server, say yes.
9. Press the 'X in the top-right.
10. Press on the connection to "root".
11. Type: export DISPLAY=127.0.0.1:0
12. Type: wmaker &
   Ignore any warnings it prints.
13. Type: pmars aeka.red rave.red
14. The programs are now fighting. To view the progress:
15. Press the 'X' in the top-right corner.
16. Press the other 'X' that appears in the top-right corner.
17. Enjoy!



Since that is an extremely long process, I will record a video of pMARS in action.
« Last Edit: March 17, 2012, 04:51:53 pm by C0deH4cker »

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: Core Wars
« Reply #33 on: March 17, 2012, 11:12:36 pm »
We really should have a ([semi]-regular) tournament for this on Omni and Cemetech. (Maybe even Omni vs Cemetech) XD

I'm gonna start looking into this on my spare time and really get into it hopefully. :P

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline hellninjas

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 625
  • Rating: +17/-0
    • View Profile
Re: Core Wars
« Reply #34 on: March 19, 2012, 11:56:01 am »
Codehacker, now i have something to do when i get home, or am at school :P
Tanks a bunch! :D

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: Core Wars
« Reply #35 on: March 19, 2012, 04:03:15 pm »
no problemo ;)

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Core Wars
« Reply #36 on: March 20, 2012, 01:20:12 pm »
Could any of you guys who are familier with redcode post some of your own warriors? I undertstand the language, but I dont quite have the perfect "grasp" that I want:)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Core Wars
« Reply #37 on: March 21, 2012, 12:29:54 am »
I myself don't have any good examples with me, but maybe you could check the internet!  Core wars is a direct port, so any program you find on the web should theoretically work in my program too, as long as it doesn't depend on a specific core size

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Core Wars
« Reply #38 on: March 22, 2012, 01:22:06 pm »
Ok, thanks. Is it ok to post our own warriors here, or should we make a new thread? By the way, how do you store each memory location?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Core Wars
« Reply #39 on: March 22, 2012, 01:52:05 pm »
You can make a new thread, and people can learn from everybody's examples ^^ And Storing to memory locations is done in general by the MOV command, which moves an instruction from one location into another.  Different addressing modes and instruction modifiers can restrict and alter this behavior as well.

Offline shkaboinka

  • LV3 Member (Next: 100)
  • ***
  • Posts: 86
  • Rating: +10/-1
    • View Profile
    • Antelope (polymorphic z80 language)
Re: Core Wars
« Reply #40 on: March 22, 2012, 01:59:06 pm »
I've been thinking of making a game based on this idea: It would involve robots moving around on a grid which would have "instructions" in various locations. The instructions would be collected into a program, which can then be dropped onto the grid as an instruction of it's own. There might be multiple robots that can influence eachother ... I haven't decided the objective though :/

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Core Wars
« Reply #41 on: March 22, 2012, 03:28:13 pm »
Sounds interesting, you should make a thread about it if it gets off the ground :)

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Core Wars
« Reply #42 on: March 22, 2012, 03:39:55 pm »
I've been thinking of making a game based on this idea: It would involve robots moving around on a grid which would have "instructions" in various locations. The instructions would be collected into a program, which can then be dropped onto the grid as an instruction of it's own. There might be multiple robots that can influence eachother ... I haven't decided the objective though :/
I've been working on a game like this...but it's for computer.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Core Wars
« Reply #43 on: March 22, 2012, 08:17:30 pm »
Seems interesting, but unfortunately despite having looked at Youtube videos and reading explanations, I have no clue what it does exactly and the goal. X.x Hopefully it's fun for other people, though.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Core Wars
« Reply #44 on: March 26, 2012, 08:27:39 pm »
We should start a mini contest using Core Warriors!  Who would be interested?