{"id":24917038,"url":"https://github.com/codernayeem/2d-mat-sim","last_synced_at":"2026-04-18T17:03:54.055Z","repository":{"id":253998745,"uuid":"845162732","full_name":"codernayeem/2d-mat-sim","owner":"codernayeem","description":"A web based 2d Matrix Simulator","archived":false,"fork":false,"pushed_at":"2024-08-24T10:01:47.000Z","size":774,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T08:31:40.996Z","etag":null,"topics":["2d","html","html-css-javascript","js","matrix","p5js","simulation","tailwindcss","web"],"latest_commit_sha":null,"homepage":"","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/codernayeem.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,"publiccode":null,"codemeta":null}},"created_at":"2024-08-20T17:48:03.000Z","updated_at":"2024-08-24T10:01:50.000Z","dependencies_parsed_at":"2024-08-24T11:21:55.155Z","dependency_job_id":null,"html_url":"https://github.com/codernayeem/2d-mat-sim","commit_stats":null,"previous_names":["codernayeem/2d-mat-sim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernayeem%2F2d-mat-sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernayeem%2F2d-mat-sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernayeem%2F2d-mat-sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codernayeem%2F2d-mat-sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codernayeem","download_url":"https://codeload.github.com/codernayeem/2d-mat-sim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991559,"owners_count":20706126,"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":["2d","html","html-css-javascript","js","matrix","p5js","simulation","tailwindcss","web"],"created_at":"2025-02-02T08:30:45.360Z","updated_at":"2026-04-18T17:03:49.033Z","avatar_url":"https://github.com/codernayeem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2d-mat-sim\nA web based 2d Matrix Simulator.\n\n### ➤ Try the simulation **[here]( https://codernayeem.github.io/2d-mat-sim/)**\n\n## Library used\n- `Tailwind CSS` - For **good** looking web\n- `p5.js` - For rendering the **Matrix**\n\n\n## Usage\n- Clone the repo `git clone https://github.com/codernayeem/2d-mat-sim.git`\n- Open the `index.html` file in a web browser.\n- Setup as your need \u0026 enjoy.\n\n## Current Setup \u0026 Behaviour\n- There are 8 type of cells. Each cell have name, symbol, color.\n    - `0` \u003e empty\n    - `1` \u003e stone\n    - `2` \u003e worm\n    - `3` - `8` \u003e city (1 - 6)\n- 3 Behaviour at each frame.\n    - **Move**: Move each `worm` to a random diagonal position.\n    - **Spread**: Each `empty` cell will be filled with a random neighbhor's (up-down-right-left) `city`.\n    - **Destroy**: Each `worm` will destroy it's 8 neighbhor cells by turning them to `empty`.\n\n## Modification\n- Change cell types \u0026 rendering in `js/cellObjects.js`.\n- Change behaviours in `updateGrid()` function in `js/simulation.js`.\n\n## Credit\n- @codernayeem","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodernayeem%2F2d-mat-sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodernayeem%2F2d-mat-sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodernayeem%2F2d-mat-sim/lists"}