{"id":32589685,"url":"https://github.com/nicolasloizeau/gol-computer","last_synced_at":"2026-03-09T13:05:41.350Z","repository":{"id":49152993,"uuid":"133187750","full_name":"nicolasloizeau/gol-computer","owner":"nicolasloizeau","description":"A computer in Conway's game of life","archived":false,"fork":false,"pushed_at":"2024-12-10T13:36:49.000Z","size":2080,"stargazers_count":172,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-30T00:59:55.869Z","etag":null,"topics":["cellular-automata","cellular-automaton","conways-game-of-life","game-of-life"],"latest_commit_sha":null,"homepage":"https://www.nicolasloizeau.com/gol-computer","language":"M4","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/nicolasloizeau.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}},"created_at":"2018-05-12T22:26:23.000Z","updated_at":"2025-08-26T13:40:45.000Z","dependencies_parsed_at":"2022-08-30T00:10:40.013Z","dependency_job_id":null,"html_url":"https://github.com/nicolasloizeau/gol-computer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicolasloizeau/gol-computer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasloizeau%2Fgol-computer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasloizeau%2Fgol-computer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasloizeau%2Fgol-computer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasloizeau%2Fgol-computer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolasloizeau","download_url":"https://codeload.github.com/nicolasloizeau/gol-computer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasloizeau%2Fgol-computer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cellular-automata","cellular-automaton","conways-game-of-life","game-of-life"],"created_at":"2025-10-30T00:59:24.305Z","updated_at":"2026-03-09T13:05:41.321Z","avatar_url":"https://github.com/nicolasloizeau.png","language":"M4","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A computer in Conway’s game of life\n\n![](./doc/screenshot.png)\n\nThis is a computer built in Conway’s game of life.\n\nAn improved version with a pixel display is available here : [https://github.com/nicolasloizeau/scalable-gol-computer](https://github.com/nicolasloizeau/scalable-gol-computer)\n\nThe computer can be programmed with the Golly script `assembly.py`\n(Golly: http://golly.sourceforge.net/ [http://golly.sourceforge.net/](http://golly.sourceforge.net/))\n\n\nPrograming instructions are in assembly.py\n\n- folder `logic gates` contains logic gates\n- folder `tools` contain tools for making adapters between logic gates\n\nFor a more detailed explaination, check [https://www.nicolasloizeau.com/gol-computer](https://www.nicolasloizeau.com/gol-computer) \n\n\n# Programming\n\nRun `assembly.py` with Golly to program the computer\n\nprograming instructions:\n\nThere are only 8 variables names: `a,b,c,d,e,f,g,h`\n`h` is used for storing the current program line, so be carefull, modifiying `h` will jump to the line `h+1`\nthe instructions are:\n```\n(let be n an integer in base 10)\n\nwrite a n\n-\u003e write n to the variable a (written in 2's complement if signed)\n\ngoto n\n-\u003e go to the line n (first line is line 0)\n\nmove a b\n-\u003e b=a\n\njumpif a\n-\u003e jump the next line if a is not 0\n\nprint a\n-\u003e print a\n\nadd a b c\n-\u003e c=a+b\n\nor a b c\n-\u003e c=bitwiseOR(a,b)\n\nand a b c\n-\u003e c=bitwiseAND(a,b)\n\nxor a b c\n-\u003e c=bitwiseXOR(a,b)\n\nnot a b\n-\u003e b=bitwiseNOT(a)\n\nflat a b\n-\u003e b=0 if a=0; b=11111111 else\n\nsign a b\n-\u003e write the most significant bit of a in b (sign of a if a is written in 2's complement)\n\nincrement a\n-\u003e a=a+1\n```\n\nThis example computes the Fibonacci sequence\n```\nwrite a 1\nwrite b 1\nadd a b a\nprint a\nadd a b b\nprint b\ngoto 2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasloizeau%2Fgol-computer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolasloizeau%2Fgol-computer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasloizeau%2Fgol-computer/lists"}