{"id":13341557,"url":"https://github.com/scottgriv/rust-wasm_game_of_life","last_synced_at":"2025-06-10T12:34:52.179Z","repository":{"id":242577987,"uuid":"809937662","full_name":"scottgriv/rust-wasm_game_of_life","owner":"scottgriv","description":"Implementation of Conway's Game of Life using Rust and WebAssembly, with real-time visualization in the browser.","archived":false,"fork":false,"pushed_at":"2025-01-09T04:27:22.000Z","size":18261,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T23:59:26.663Z","etag":null,"topics":["conways-game-of-life","game-of-life","rust","web-assembly","webassembly","webassembly-demo"],"latest_commit_sha":null,"homepage":"https://scottgriv.github.io/rust-wasm_game_of_life/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottgriv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T18:29:42.000Z","updated_at":"2025-01-09T04:27:25.000Z","dependencies_parsed_at":"2024-06-14T18:00:43.067Z","dependency_job_id":null,"html_url":"https://github.com/scottgriv/rust-wasm_game_of_life","commit_stats":null,"previous_names":["scottgriv/rust-wasm_game_of_life"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Frust-wasm_game_of_life","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Frust-wasm_game_of_life/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Frust-wasm_game_of_life/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Frust-wasm_game_of_life/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottgriv","download_url":"https://codeload.github.com/scottgriv/rust-wasm_game_of_life/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgriv%2Frust-wasm_game_of_life/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259076345,"owners_count":22801729,"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":["conways-game-of-life","game-of-life","rust","web-assembly","webassembly","webassembly-demo"],"created_at":"2024-07-29T19:25:29.319Z","updated_at":"2025-06-10T12:34:52.115Z","avatar_url":"https://github.com/scottgriv.png","language":"Rust","funding_links":["https://www.buymeacoffee.com/scottgriv"],"categories":[],"sub_categories":[],"readme":"\u003c!-- Begin README --\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://scottgriv.github.io/rust-wasm_game_of_life/\" target=\"_blank\"\u003e\n        \u003cimg src=\"./docs/images/cgol.gif\" width=\"200\" height=\"200\"/\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.rust-lang.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Rust-1.74.0-000000?style=for-the-badge\u0026logo=rust\" alt=\"Rust Badge\" /\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/scottgriv\"\u003e\u003cimg src=\"https://img.shields.io/badge/github-follow_me-181717?style=for-the-badge\u0026logo=github\u0026color=181717\" alt=\"GitHub Badge\" /\u003e\u003c/a\u003e\n    \u003ca href=\"mailto:scott.grivner@gmail.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/gmail-contact_me-EA4335?style=for-the-badge\u0026logo=gmail\" alt=\"Email Badge\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.buymeacoffee.com/scottgriv\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy_me_a_coffee-support_me-FFDD00?style=for-the-badge\u0026logo=buymeacoffee\u0026color=FFDD00\" alt=\"BuyMeACoffee Badge\" /\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/scottgriv/rust-wasm_game_of_life/actions/workflows/gh-pages.yml\" target=\"_blank\"\u003e\u003cimg alt=\"GitHub Workflow Status (with event)\" src=\"https://img.shields.io/github/actions/workflow/status/scottgriv/rust-wasm_game_of_life/gh-pages.yml?style=for-the-badge\u0026logo=github\u0026label=GitHub%20Pages\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://prgportfolio.com\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/PRG-Bronze Project-CD7F32?style=for-the-badge\u0026logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiB3aWR0aD0iMjYuMDAwMDAwcHQiIGhlaWdodD0iMzQuMDAwMDAwcHQiIHZpZXdCb3g9IjAgMCAyNi4wMDAwMDAgMzQuMDAwMDAwIgogcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCI+Cgo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwzNC4wMDAwMDApIHNjYWxlKDAuMTAwMDAwLC0wLjEwMDAwMCkiCmZpbGw9IiNDRDdGMzIiIHN0cm9rZT0ibm9uZSI+CjxwYXRoIGQ9Ik0xMiAzMjggYy04IC04IC0xMiAtNTEgLTEyIC0xMzUgMCAtMTA5IDIgLTEyNSAxOSAtMTQwIDQyIC0zOCA0OAotNDIgNTkgLTMxIDcgNyAxNyA2IDMxIC0xIDEzIC03IDIxIC04IDIxIC0yIDAgNiAyOCAxMSA2MyAxMyBsNjIgMyAwIDE1MCAwCjE1MCAtMTE1IDMgYy04MSAyIC0xMTkgLTEgLTEyOCAtMTB6IG0xMDIgLTc0IGMtNiAtMzMgLTUgLTM2IDE3IC0zMiAxOCAyIDIzCjggMjEgMjUgLTMgMjQgMTUgNDAgMzAgMjUgMTQgLTE0IC0xNyAtNTkgLTQ4IC02NiAtMjAgLTUgLTIzIC0xMSAtMTggLTMyIDYKLTIxIDMgLTI1IC0xMSAtMjIgLTE2IDIgLTE4IDEzIC0xOCA2NiAxIDc3IDAgNzIgMTggNzIgMTMgMCAxNSAtNyA5IC0zNnoKbTExNiAtMTY5IGMwIC0yMyAtMyAtMjUgLTQ5IC0yNSAtNDAgMCAtNTAgMyAtNTQgMjAgLTMgMTQgLTE0IDIwIC0zMiAyMCAtMTgKMCAtMjkgLTYgLTMyIC0yMCAtNyAtMjUgLTIzIC0yNiAtMjMgLTIgMCAyOSA4IDMyIDEwMiAzMiA4NyAwIDg4IDAgODggLTI1eiIvPgo8L2c+Cjwvc3ZnPgo=\" alt=\"Bronze\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---------------\n\n\u003ch1 align=\"center\"\u003eConway's Game of Life\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://scottgriv.github.io/rust-wasm_game_of_life/\" target=\"_blank\"\u003e\n        \u003cimg src=\"./docs/images/banner.png\" style=\"width: 50%;\"/\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003ci\u003eRust teams up with WebAssembly.\u003c/i\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\nA web-based implementation of **Conway's Game of Life** using `Rust` and `WebAssembly`.\n\n**The Game of Life**, also known simply as **Life**, is a cellular automaton devised by the British mathematician *John Horton Conway* in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the **Game of Life** by creating an initial configuration and observing how it evolves. It is *Turing complete* and can simulate a universal constructor or any other *Turing machine*.\n\n - Visit a demo of the application [here](https://scottgriv.github.io/rust-wasm_game_of_life/).\n \n---------------\n\n## Table of Contents\n\n- [Features](#features)\n- [Getting Started](#getting-started)\n    - [Dependencies](#dependencies)\n    - [Installation](#installation)\n    - [Usage](#usage)\n- [What's Inside?](#whats-inside)\n- [Resources](#resources)\n- [License](#license)\n- [Credits](#credits)\n\n## Features\n\n- **Rust Implementation:** The core logic of the game is implemented in Rust, leveraging its performance and safety features.\n- **WebAssembly:** The Rust code is compiled to WebAssembly, enabling it to run efficiently in the browser.\n- **Interactive Visualization:** The game grid is rendered in the browser using HTML and JavaScript, allowing users to see the simulation in real-time.\n\n## Getting Started\n\n### Dependencies\n\n1. Install Rust using the recommended method, rustup:\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh\n```\n\n2. Install wasm-pack using Cargo (the Rust package manager):\n```bash\ncargo install wasm-pack\n```\n\n3. Ensure you have Node.js and npm installed. \nYou can download them from [Node.js](https://nodejs.org/).\n\n4. Install http-server globally using npm:\n```bash\nnpm install -g http-server\n```\n\n### Installation\n\n1. Clone the Repository:\n```bash\ngit clone https://github.com/scottgriv/rust-wasm_game_of_life\n```\n\n2. Change to the Directory:\n```bash\ncd rust-wasm_game_of_life\n```\n\n3. Add Cargo to PATH:\n```bash\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\n```\n\n4. Source the Shell Configuration:\n```bash\nsource ~/.zshrc  \n```\n\n5. Remove Existing `pkg` Directories (if they exist):\n```bash\nrm -rf pkg www/pkg\n```\n\n6. Build the Project package folder and files with `wasm-pack`:\n```bash\nwasm-pack build --target web\n```\n\n7. Move Generated `pkg` folder to `www`:\n```bash\nmv pkg www/\n```\n\n8. Remove optional Auto-Generated files (if you need them for your repository):\n```bash\nrm www/pkg/README.md www/pkg/.gitignore\n```\n\n9. Set up the Web Server:\n```bash\ncd www\nhttp-server\n```\n\n## Usage\n\n- Open your web browser and navigate to:\n```bash\nhttp://localhost:8080\n```\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://scottgriv.github.io/rust-wasm_game_of_life/\" target=\"_blank\"\u003e\n        \u003cimg src=\"./docs/images/demo.gif\" style=\"width: 50%;\"/\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003ci\u003eWeb output, cellular automaton in a zero-player game.\u003c/i\u003e\n\u003c/div\u003e\n\n## What's Inside?\n\n```bash\nrust-wasm_game_of_life/ # Root directory\n├── .github/ # GitHub folder\n│   └── workflows/ # GitHub Actions folder\n│       └── gh-pages.yml # GitHub Pages workflow\n├── src/ # Source code\n│   └── lib.rs # Rust code for the game logic\n├── www/ # Web assets\n│   ├── index.html # HTML file\n│   ├── index.js # JavaScript file\n│   └── pkg/ # WebAssembly package\n│       ├── package.json # JSON package file\n│       ├── rust_wasm_game_of_life.js\n│       ├── rust_wasm_game_of_life_bg.wasm\n│       ├── rust_wasm_game_of_life_bg.wasm.d.ts\n│       └── rust_wasm_game_of_life.d.ts\n├── target/ # Generated\n├── Cargo.toml # Dependencies\n├── .gitignore # git ignore file\n├── LICENSE # License file\n└── README.md # This file\n```\n\n## Resources\n\n- [Rust](https://www.rust-lang.org/)\n- [WebAssembly](https://webassembly.org/)\n- [Rust and WebAssembly](https://rustwasm.github.io/book/introduction.html)\n- [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life)\n- [Play Conway's Game of Life](https://playgameoflife.com/)\n\n## License\n\nThis project is released under the terms of **The Unlicense**, which allows you to use, modify, and distribute the code as you see fit. \n- [The Unlicense](https://choosealicense.com/licenses/unlicense/) removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.\n- For more details, see the [LICENSE](LICENSE) file in this repository.\n\n## Credits\n\n**Author:** [Scott Grivner](https://github.com/scottgriv) \u003cbr\u003e\n**Email:** [scott.grivner@gmail.com](mailto:scott.grivner@gmail.com) \u003cbr\u003e\n**Website:** [scottgrivner.dev](https://www.scottgrivner.dev) \u003cbr\u003e\n**Reference:** [Main Branch](https://github.com/scottgriv/rust-wasm_game_of_life) \u003cbr\u003e\n\n---------------\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://scottgrivner.dev\" target=\"_blank\"\u003e\n        \u003cimg src=\"./docs/images/footer.png\" width=\"100\" height=\"100\"/\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003c!-- End README --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgriv%2Frust-wasm_game_of_life","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottgriv%2Frust-wasm_game_of_life","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgriv%2Frust-wasm_game_of_life/lists"}