{"id":18681319,"url":"https://github.com/psycofdj/corewar","last_synced_at":"2025-08-07T00:43:39.523Z","repository":{"id":192751349,"uuid":"62894236","full_name":"psycofdj/corewar","owner":"psycofdj","description":"Programming game of ships racing in virtual memory","archived":false,"fork":false,"pushed_at":"2016-08-16T19:33:28.000Z","size":13920,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T16:08:52.254Z","etag":null,"topics":["corewar","game","race","ship"],"latest_commit_sha":null,"homepage":"http://corewar.dev.marcelet.com/rules/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psycofdj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-07-08T14:22:21.000Z","updated_at":"2021-03-15T22:27:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"543c92da-2cf8-4f05-8680-5abfd5bbd7e4","html_url":"https://github.com/psycofdj/corewar","commit_stats":null,"previous_names":["psycofdj/corewar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psycofdj/corewar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psycofdj%2Fcorewar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psycofdj%2Fcorewar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psycofdj%2Fcorewar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psycofdj%2Fcorewar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psycofdj","download_url":"https://codeload.github.com/psycofdj/corewar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psycofdj%2Fcorewar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269181012,"owners_count":24373845,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["corewar","game","race","ship"],"created_at":"2024-11-07T10:06:54.919Z","updated_at":"2025-08-07T00:43:39.489Z","avatar_url":"https://github.com/psycofdj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-generate-toc again --\u003e\n**Table of Contents**\n\n- [Introduction](#introduction)\n- [How to play](#how-to-play)\n- [Install](#install)\n- [Configuration](#configuration)\n- [Run](#run)\n    - [Standalone](#standalone)\n    - [WebServer](#webserver)\n\n\u003c!-- markdown-toc end --\u003e\n\nIntroduction\n============\n\nCorewar is a coding game where programs confront each others in a virtual machine.\nCoded in a asm-like language, your program is assembled as a ship that races a cycling memory.\nEach instructions cost a certain amount of CPU cycle, the fastest ship to complete 3 laps wins.\n\n\nHow to play\n===========\n\nYou can either install corewar on your local machine or go to my self-hosted instance :\n* http://corewar.marcelet.com/rules/ (French documentation)\n\n\nInstall\n=======\n\n```bash\n# install dependencies\nsudo apt-get install mysql-server python-mako python-ply python-cherrypy python-mysqldb\n\n# checkout from git repo\ngit clone https://github.com/psycofdj/corewar.git\n\n# enter corewar directory\ncd corewar/src\n\n# create default configuration\ncp corewar.cfg.sample corewar.cfg\n\n# bootstrap database\n# -\u003e it will prompt for mysql admin user/pass\n# -\u003e and creates new database and user according to corewar.cfg\n./setup.py --install --modules=corewar\n```\n\nConfiguration\n=============\n\nAll options available from ```./corewar.py --help``` can be added in corewar.cfg file\n\n\nRun\n===\n\nCorewar can be used as a standalone program to assemble and run ships or as a daemon web-server.\n\n\nStandalone\n----------\n\n* compile ship : this command checks your code in file my_ship.s and output errors if any\n\n```bash\n./corewar.py --league=race --check-compile my_ship.s\n```\n\n* run ship : this command compiles and run your code in file my_ship.s\n\n```bash\n./corewar.py --league=race my_ship.s\n```\n\nyou can add executions logs (to debug you ship) with the --log-level switch.\n\n```bash\n./corewar.py --league=race my_ship.s --log-level=10\n```\n\n\nWebServer\n---------\n\nFirst run :\n```bash\n./corewar.py --web-start\n```\n\nThen go to [http://localhost:8080](http://localhost:8080)\n\nPorts and logs options can be specified from command line or corewar.cfg.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsycofdj%2Fcorewar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsycofdj%2Fcorewar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsycofdj%2Fcorewar/lists"}