{"id":15060302,"url":"https://github.com/vbrazhnik/corewar","last_synced_at":"2025-10-24T15:48:04.734Z","repository":{"id":220985354,"uuid":"154313401","full_name":"VBrazhnik/Corewar","owner":"VBrazhnik","description":"School 42 project // Implementation of programming game “Core War” [Champions + Assembler + Disassembler + Virtual Machine + Visualizer]","archived":false,"fork":false,"pushed_at":"2019-01-03T06:47:30.000Z","size":5097,"stargazers_count":91,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T15:48:04.032Z","etag":null,"topics":["42","42projects","42school","assembler","born2code","c","corewar","corewars","disassembler","gui","ncurses","unitfactory","virtual-machine","visualization","visualizer"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"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/VBrazhnik.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-10-23T11:06:03.000Z","updated_at":"2025-10-01T21:52:28.000Z","dependencies_parsed_at":"2024-02-12T01:30:19.292Z","dependency_job_id":null,"html_url":"https://github.com/VBrazhnik/Corewar","commit_stats":null,"previous_names":["vbrazhnik/corewar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VBrazhnik/Corewar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FCorewar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FCorewar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FCorewar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FCorewar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VBrazhnik","download_url":"https://codeload.github.com/VBrazhnik/Corewar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FCorewar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280823230,"owners_count":26397437,"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-10-24T02:00:06.418Z","response_time":73,"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":["42","42projects","42school","assembler","born2code","c","corewar","corewars","disassembler","gui","ncurses","unitfactory","virtual-machine","visualization","visualizer"],"created_at":"2024-09-24T22:56:34.370Z","updated_at":"2025-10-24T15:48:04.700Z","avatar_url":"https://github.com/VBrazhnik.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Corewar\n\nCorewar is a School 42 project. The purpose of this project is an implementation of the programming game **“Core War”**.\n\n![Corewar](/wiki_resources/corewar.svg)\n\n[corewar.en.pdf](/corewar.en.pdf) is the task file.\n\nTask resources is placed at [the `task_resources` folder](/task_resources/).\n\n## Wiki\n\nThis project has an 8-page guide. The guide was written **in Russian**.\n\nYou can read it [at the wiki-pages](../../wiki/).\n\n## Project Structure\n\nThis project consists of five parts:\n\n* Champion\n* Assembler\n* Disassembler (Bonus)\n* Virtual Machine\n* Visualizer (Bonus)\n\nProject has three developed champions: `amedvedi.s`, `wasp.s`, `kalle.s`. They are located at [the `champions` directory](/champions/).\n\nAssembler + Disassembler are modules of the program `asm`.\n\nVirtual Machine + Visualizer are modules of the program `corewar`.\n\n## How to clone?\n\nThis repository includes submodule. So if you want to clone it, you can use the following command:\n\n```\ngit clone --recurse-submodules \u003crepository url\u003e\n```\n\n## Installation\n\nClone repository and then go into the created directory and run the following command:\n\n```\nmake\n```\n\n## Usage\n\n### `asm`\n\n```\nUsage: ./asm (champion.s|champion.cor)\n    champion.s   — from assemble to bytecode\n    champion.cor — from bytecode to assemble\n```\n\n### `corewar`\n\n```\nUsage: ./corewar [-a (-dump|-d) \u003cnum\u003e (-shed|-s) \u003cnum\u003e -l \u003cnum\u003e] [-v] [-n \u003cnum\u003e] \u003cchampion.cor\u003e \u003c...\u003e\n    -a          : Print output from \"aff\" (Default is off)\n    -dump \u003cnum\u003e : Dump memory (32 octets per line) after \u003cnum\u003e cycles and exit\n    -d    \u003cnum\u003e : Dump memory (64 octets per line) after \u003cnum\u003e cycles and exit\n    -show \u003cnum\u003e : Run \u003cnum\u003e cycles, dump memory (32 octets per line), pause and repeat\n    -s    \u003cnum\u003e : Run \u003cnum\u003e cycles, dump memory (64 octets per line), pause and repeat\n    -l    \u003cnum\u003e : Log levels\n                   1  : Show lives\n                   2  : Show cycles\n                   4  : Show operations\n                   8  : Show deaths\n                   16 : Show PC movements\n    -v          : Run visualizer\n    -n    \u003cnum\u003e : Set \u003cnum\u003e of the next player\n```\n\n## Visualizer\n\nThe best visualizer performance is with **iTerm2**.\n\n![Visualizer](/wiki_resources/visualizer.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbrazhnik%2Fcorewar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbrazhnik%2Fcorewar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbrazhnik%2Fcorewar/lists"}