{"id":26883687,"url":"https://github.com/jiro4989/gameoflife","last_synced_at":"2025-03-31T17:36:44.864Z","repository":{"id":34638560,"uuid":"181151051","full_name":"jiro4989/gameoflife","owner":"jiro4989","description":"Library for Game of Life in pure Nim.","archived":false,"fork":false,"pushed_at":"2024-03-20T04:59:32.000Z","size":14065,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-20T05:42:51.462Z","etag":null,"topics":["gameoflife","lib","library","lifegame","nim"],"latest_commit_sha":null,"homepage":"https://jiro4989.github.io/gameoflife/gameoflife.html","language":"Nim","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/jiro4989.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-04-13T09:49:02.000Z","updated_at":"2022-03-16T10:26:51.000Z","dependencies_parsed_at":"2024-03-20T05:51:24.054Z","dependency_job_id":null,"html_url":"https://github.com/jiro4989/gameoflife","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgameoflife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgameoflife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgameoflife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fgameoflife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiro4989","download_url":"https://codeload.github.com/jiro4989/gameoflife/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246509936,"owners_count":20789262,"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":["gameoflife","lib","library","lifegame","nim"],"created_at":"2025-03-31T17:36:42.897Z","updated_at":"2025-03-31T17:36:44.853Z","avatar_url":"https://github.com/jiro4989.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":":toc: left\n:sectnums:\n\n= gameoflife\n\ngameoflife is\nhttps://en.wikipedia.org/wiki/Conway%27s_Game_of_Life[Game_of_Life] library in\npure Nim.\n\nimage:https://travis-ci.org/jiro4989/gameoflife.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/jiro4989/gameoflife\"]\n\n== Development\n\n- `nim \u003e= 1.0.0`\n\n== Install\n\n[source,bash]\nnimble install gameoflife\n\n== Usage\n\n=== CLI\n\n[source,bash]\n----\ngameoflife examples/read_file/in/glider.txt\n----\n\n`glider.txt` is:\n\n[source,txt]\n----\n00000000000000000000000000000000000000\n00000000000000000000000001000000000000\n00000000000000000000000101000000000000\n00000000000001100000011000000000000110\n00000000000010001000011000000000000110\n01100000000100000100011000000000000000\n01100000000100010110000101000000000000\n00000000000100000100000001000000000000\n00000000000010001000000000000000000000\n00000000000001100000000000000000000000\n00000000000000000000000000000000000000\n00000000000000000000000000000000000000\n00000000000000000000000000000000000000\n00000000000000000000000000000000000000\n00000000000000000000000000000000000000\n00000000000000000000000000000000000000\n00000000000000000000000000000000000000\n00000000000000000000000000000000000000\n----\n\n==== Play gameoflife with `maze`\n\nGenerate random data with https://github.com/jiro4989/maze[maze].\n\nSetup:\n\n[source,bash]\n----\nnimble install -Y maze\n----\n\nAnd run:\n\n[source,bash]\n----\nmaze -r:1 -w:0 -W:20 -H:20 | gameoflife\n----\n\nimage:docs/maze.gif[\"Maze\"]\n\n=== Library\n\n==== Blinker example\n\n[source,nim]\n----\nimport gameoflife\nfrom os import sleep\n\nvar board: Board = @[\n  @[dead, dead, dead, dead, dead],\n  @[dead, dead, dead, dead, dead],\n  @[dead, live, live, live, dead],\n  @[dead, dead, dead, dead, dead],\n  @[dead, dead, dead, dead, dead],\n]\n\nwhile true:\n  board.nextStep()\n  board.print\n  echo \"-----------------------------------\"\n  sleep(100)\n----\n\n==== Glider example\n\n[source,bash]\ncd examples/read_file\nnim c -r main.nim in/glider.txt\n\nimage:docs/glider.gif[\"Glider animation\"]\n\n== Documents\n\n* https://jiro4989.github.io/gameoflife/gameoflife.html\n\n== Web application of Game of Life\n\nI created simple Game of Life on web application.\n\nhttps://jiro4989.github.io/gameoflife\n\nJavascript library of Game of Life of the application is generated by this\nmodule (`nimble js`).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fgameoflife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiro4989%2Fgameoflife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fgameoflife/lists"}