{"id":13526578,"url":"https://github.com/zsoltk/GameOfLife","last_synced_at":"2025-04-01T07:33:03.977Z","repository":{"id":28831330,"uuid":"32354897","full_name":"zsoltk/GameOfLife","owner":"zsoltk","description":"An Android implementation of Conway's Game of Life","archived":false,"fork":false,"pushed_at":"2023-01-31T19:04:05.000Z","size":5844,"stargazers_count":98,"open_issues_count":2,"forks_count":56,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-02T06:21:54.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zsoltk.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}},"created_at":"2015-03-16T21:44:40.000Z","updated_at":"2024-07-16T13:38:25.000Z","dependencies_parsed_at":"2023-02-19T08:31:32.996Z","dependency_job_id":null,"html_url":"https://github.com/zsoltk/GameOfLife","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsoltk%2FGameOfLife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsoltk%2FGameOfLife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsoltk%2FGameOfLife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsoltk%2FGameOfLife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zsoltk","download_url":"https://codeload.github.com/zsoltk/GameOfLife/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222709871,"owners_count":17026764,"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":[],"created_at":"2024-08-01T06:01:31.748Z","updated_at":"2024-11-02T11:31:21.904Z","avatar_url":"https://github.com/zsoltk.png","language":"Java","funding_links":[],"categories":["Android","Mobile Games"],"sub_categories":["Android"],"readme":"# GameOfLife\n[![](https://developer.android.com/images/brand/en_app_rgb_wo_60.png)](https://play.google.com/store/apps/details?id=hu.supercluster.gameoflife)\n\nAn Android implementation of Conway's Game of Life, focusing on clean design and implementation\n\n## About Game of Life\n* [Stephen Hawking's The Meaning of Life (John Conway's Game of Life segment)](https://www.youtube.com/watch?v=CgOcEZinQ2I)\n* [Video showing some epic creations](https://www.youtube.com/watch?v=C2vgICfQawE)\n* [Wikipedia article] (http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life)\n\n## About the app\nChangeable automaton rules, presets, and interactive board. Some interesting outcomes:\n\n![](http://i.imgur.com/jZPfMlv.png)\n![](http://i.imgur.com/sDMRCJW.png)\n![](http://i.imgur.com/FOdxb8i.png)\n![](http://i.imgur.com/8bi2kLT.png)\n![](http://i.imgur.com/wmSrTRt.png)\n![](http://i.imgur.com/cwAe79y.png)\n\n## About the code\n#### Used technologies\n* [AndroidAnnotations](https://github.com/excilys/androidannotations) \n* [Otto](square.github.io/otto/) \n* [Hugo](https://github.com/JakeWharton/hugo)\n\n#### Running tests\nType ```./gradlew app:test```.\n\nResults can be checked in the generated HTML under ```app/build/reports/tests/debug/index.html```\n\n#### Tampering around\nThe code is intentionally implemented in a way to make it easy to create other types of cellular automata. Feel free to fork it and play around. For a starter:\n\n1. Add your own implementation for Rule and CellularAutomata, and for CellColors if your automaton needs more than a basic dead / alive coloring:\n   * [Rule](https://github.com/zsoltk/GameOfLife/tree/master/app/src/main/java/hu/supercluster/gameoflife/game/rule)\n   * [CellullarAutomaton](https://github.com/zsoltk/GameOfLife/tree/master/app/src/main/java/hu/supercluster/gameoflife/game/cellularautomaton)\n   * [CellColors](https://github.com/zsoltk/GameOfLife/tree/master/app/src/main/java/hu/supercluster/gameoflife/game/visualization/cell)\n\n2. Use them in:\n   * [MainPresenter](https://github.com/zsoltk/GameOfLife/blob/master/app/src/main/java/hu/supercluster/gameoflife/app/activity/main/MainPresenter.java)\n\n3. If you're interested how the transformation is done, check:\n   * [Transformer](https://github.com/zsoltk/GameOfLife/tree/master/app/src/main/java/hu/supercluster/gameoflife/game/transformer)\n\n4. Have fun and message me if you create something cool!\n\n#### Known limitations\nThe approach used in the transformation logic is that only cell state changes are observed, and a counter of dead / alive neighbors is updated in every surrounding cell. By using the [ThreadedGridTransformer](https://github.com/zsoltk/GameOfLife/blob/master/app/src/main/java/hu/supercluster/gameoflife/game/transformer/ThreadedGridTransformer.java) it's fast enough to be smooth for Game of Life and most other rules. However, rules resulting in lots of changes around the screen might slow the game down.\n\n## Translations\n**A big thank you to the translators:**\n* Croatian by Lotti Sándorfi\n* Estonian by Angéla Nagy and Berit Puidet\n* French by Angéla Nagy\n* German by Zoltán Török\n* Latvian by Rolands Pragulbicks\n* Russian by Natália Szvetlána Vaszkevics\n* Ukrainian by Natália Szvetlána Vaszkevics\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsoltk%2FGameOfLife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzsoltk%2FGameOfLife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsoltk%2FGameOfLife/lists"}