{"id":15540333,"url":"https://github.com/rm-hull/corewar","last_synced_at":"2025-08-26T19:05:20.350Z","repository":{"id":18953374,"uuid":"22173571","full_name":"rm-hull/corewar","owner":"rm-hull","description":"A clojure / clojurescript / core.async implementation of A. K. Dewdney's Core War","archived":false,"fork":false,"pushed_at":"2014-10-03T23:23:46.000Z","size":228,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-03T12:17:59.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://programming-enchiladas.destructuring-bind.org/rm-hull/7a7b0656a7a8c95ff853","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rm-hull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-23T19:54:28.000Z","updated_at":"2019-10-26T19:26:42.000Z","dependencies_parsed_at":"2022-08-02T20:46:07.233Z","dependency_job_id":null,"html_url":"https://github.com/rm-hull/corewar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fcorewar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fcorewar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fcorewar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fcorewar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rm-hull","download_url":"https://codeload.github.com/rm-hull/corewar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250472249,"owners_count":21436106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T12:13:33.215Z","updated_at":"2025-04-23T16:43:57.581Z","avatar_url":"https://github.com/rm-hull.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Core War [![Build Status](https://secure.travis-ci.org/rm-hull/corewar.svg)](http://travis-ci.org/rm-hull/corewar)\n\nA clojure / clojurescript / core.async implementation of A. K. Dewdney's Core War\n\n## An introduction to hostile programming\n\nCorewar is a game from the 1980's, played between computer programs written\nin Redcode, a language similar to assembly. The programmers design their \nbattle programs to remove opponents from the memory of the MARS virtual \ncomputer by any means possible.\n\nSome of the simpler techniques include blindly overwriting memory, \nsearching for the opponent or spawning off new processes. These are \ncommonly known as stone, scissors, paper after the popular playground \ngame. Stone usually wins against scissors, scissors normally defeat paper, \nand paper mostly beats stone.\n\nHere's an example of a typical Corewar program:\n\n```redcode\n     org   wipe\n\n     step  equ 5\n     first equ bomb-10\n\nbomb:mov.i #1,       -1\n\nptr: sub   #step,    #first\nwipe:jmz.f ptr,      @ptr\n\n     mov   bomb,     \u003eptr\n     djn.f wipe,     {ptr-5\n\n     end\n```\n\nThis simple example of scissors once held a 20 point lead over it's rivals.\nThe first instruction is never executed, it's the bomb used to overwrite \nopponents. The next two instructions form a loop which looks through memory\nfor an opponent, and the final two instructions actually overwrite it.\n\nCorewar is still going strong, and celebrated it's 25th anniversary in 2009.\nIf you'd like to discover more about Corewar, here are the top resources:\n\n* [The Beginner's Guide to Redcode](http://vyznev.net/corewar/guide.html) \n  will teach you the language of Corewar\n* [pMARS](http://corewar.co.uk/pmars) is a portable implementation of the \n  Corewar virtual machine\n* [Corewar Tutorials](http://corewar.co.uk/guides.htm) exist on virtually \n  every aspect of the game\n* [Koenigstuhl](http://users.obs.carnegiescience.edu/birk/COREWAR/koenigstuhl.html)\n  is an archive of thousands of published Corewar programs\n* [SAL](http://sal.discontinuity.info) organises a number of on-going king \n  of the hill tournaments\n* [sfghoul](http://sfghoul.blogspot.com) and [impomatic](http://impomatic.blogspot.com)\n  report the latest Corewar news on their blogs\n\n[#corewars](irc://irc.freenode.net/#COREWARS) is the official Corewar \ndiscussion channel, hosted by [irc.freenode.net](irc://irc.freenode.net/#COREWARS).\n\nWhat are your experiences with Corewar, have you ever had any success?\n\n## Implementation details\n\n### Pre-requisites\n\nYou will need [Leiningen](https://github.com/technomancy/leiningen) 2.4.2 or above installed.\n\n### Building\n\nTo build and install the library locally, run:\n\n    $ lein test\n    $ lein cljsbuild once\n    $ lein install\n\n### Including in your project\n\nThere _will be_ a version hosted at [Clojars](https://clojars.org/rm-hull/corewar).\nFor leiningen include a dependency:\n\n```clojure\n[rm-hull/corewar \"0.0.1-SNAPSHOT\"]\n```\n\nFor maven-based projects, add the following to your `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003erm-hull\u003c/groupId\u003e\n  \u003cartifactId\u003ecorewar\u003c/artifactId\u003e\n  \u003cversion\u003e0.0.1-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## TODO\n\n## Known Bugs\n\n## References\n\n* http://corewar.co.uk/cwg.txt\n* https://en.wikipedia.org/wiki/Core%20War\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Richard Hull\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm-hull%2Fcorewar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frm-hull%2Fcorewar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm-hull%2Fcorewar/lists"}