{"id":22396433,"url":"https://github.com/acboujida/gameoflife","last_synced_at":"2026-04-21T22:35:23.331Z","repository":{"id":264219284,"uuid":"892734897","full_name":"acboujida/GameOfLife","owner":"acboujida","description":"A C/C++ implementation of Conway's Game of Life with graphical rendering using SDL2.","archived":false,"fork":false,"pushed_at":"2024-11-22T17:34:16.000Z","size":2018,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T04:38:04.039Z","etag":null,"topics":["cellular-automaton","cpp","sdl2","simulation"],"latest_commit_sha":null,"homepage":"","language":"C","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/acboujida.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-11-22T17:13:41.000Z","updated_at":"2024-11-22T17:38:47.000Z","dependencies_parsed_at":"2024-11-22T18:25:27.777Z","dependency_job_id":"cc599b68-b0b2-4a09-bb4e-d10dbef46935","html_url":"https://github.com/acboujida/GameOfLife","commit_stats":null,"previous_names":["acboujida/gameoflife"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/acboujida/GameOfLife","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acboujida%2FGameOfLife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acboujida%2FGameOfLife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acboujida%2FGameOfLife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acboujida%2FGameOfLife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acboujida","download_url":"https://codeload.github.com/acboujida/GameOfLife/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acboujida%2FGameOfLife/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32113276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-automaton","cpp","sdl2","simulation"],"created_at":"2024-12-05T06:08:08.410Z","updated_at":"2026-04-21T22:35:23.316Z","avatar_url":"https://github.com/acboujida.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Game of Life\n\nA C++ implementation of Conway's Game of Life with graphical rendering using SDL2.\n\n## Features\n- **Dynamic grid**: Simulates the evolution of a grid based on Conway's Game of Life rules.\n- **Interactive UI**: Click cells to toggle their state.\n- **Pause/Resume**: Start and stop the simulation using the spacebar.\n- **Efficient rendering**: Uses SDL2 for graphical representation.\n\n## How It Works\nThe Game of Life is a cellular automaton devised by John Conway. The grid evolves according to these rules:\n1. Any live cell with 2 or 3 live neighbors survives.\n2. Any dead cell with exactly 3 live neighbors becomes a live cell.\n3. All other live cells die, and all other dead cells remain dead.\n\n## Controls\n- **Left-click**: Toggle a cell's state (alive or dead).\n- **Spacebar**: Pause or resume the simulation.\n- **R**: Reinitialize the grid.\n\n## Installation and Usage\n\n### Prerequisites\n- A C++ compiler (I recommend g++).\n- SDL2 installed on your system.\n\n### Build Instructions\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/your-username/GameOfLife.git\n    cd GameOfLife\n    ```\n\n2. Open the `GameOfLife.sln` file in Visual Studio (or your preferred IDE).\n\n3. Build and run the project.\n\n### Running the Application\n- The application starts in **pause mode**. Press `Spacebar` to begin the simulation.\n- Modify the grid using your mouse and watch the simulation evolve!\n\n## Demonstration\n![The application in action](./demo.gif)\n\n## Acknowledgments\nConway's Game of Life: [Wikipedia](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facboujida%2Fgameoflife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facboujida%2Fgameoflife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facboujida%2Fgameoflife/lists"}