{"id":30429723,"url":"https://github.com/thiagokimo/gameoflifeview","last_synced_at":"2025-08-22T17:36:25.643Z","repository":{"id":28005794,"uuid":"31500234","full_name":"thiagokimo/GameOfLifeView","owner":"thiagokimo","description":"A simple Android view that displays Conway's Game of Life. I've learnt the principles of TDD doing this","archived":false,"fork":false,"pushed_at":"2017-12-07T21:12:52.000Z","size":168,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-07-01T01:05:58.715Z","etag":null,"topics":["android","conway","game-of-life","view"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thiagokimo.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-01T15:17:30.000Z","updated_at":"2023-07-01T01:05:58.716Z","dependencies_parsed_at":"2022-09-02T09:26:26.377Z","dependency_job_id":null,"html_url":"https://github.com/thiagokimo/GameOfLifeView","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"purl":"pkg:github/thiagokimo/GameOfLifeView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FGameOfLifeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FGameOfLifeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FGameOfLifeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FGameOfLifeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagokimo","download_url":"https://codeload.github.com/thiagokimo/GameOfLifeView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagokimo%2FGameOfLifeView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271673564,"owners_count":24800717,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["android","conway","game-of-life","view"],"created_at":"2025-08-22T17:36:20.080Z","updated_at":"2025-08-22T17:36:25.635Z","avatar_url":"https://github.com/thiagokimo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GameOfLifeView\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-GameOfLifeView-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1672)\n\nThis is a custom Android view which displays Conway's Game of Life. I've done to display the results of my learnings of Test Driven Development.\n\n![Screenshot](https://raw.githubusercontent.com/thiagokimo/GameOfLifeView/master/images/default.jpg)\n![Screenshot](https://raw.githubusercontent.com/thiagokimo/GameOfLifeView/master/images/custom.jpg)\n\n## Setup\nGradle:\n\n``` groovy\ndependencies {\n    compile 'com.github.thiagokimo:gameoflifeview:1.0.2'\n}\n```\n\nMaven:\n\n``` xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.thiagokimo\u003c/groupId\u003e\n    \u003cartifactId\u003egameoflifeview\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n### Through XML\n\n``` xml\n\u003cio.kimo.gameoflifeview.view.GameOfLifeView\n  android:layout_width=\"match_parent\"\n  android:layout_height=\"match_parent\"\n  game_of_life_view:proportion=\"20\"\n  game_of_life_view:aliveCellColor=\"#FF0000\"\n  game_of_life_view:deadCellColor=\"#0000FF\"/\u003e\n```\n\n### Through Code\n\nInitialize the view:\n\n``` java\n@Override \nprotected void onCreate(Bundle savedInstanceState) {\n  super.onCreate(savedInstanceState);\n  gameOfLifeView = new GameOfLifeView(this);\n  gameOfLifeView.setProportion(20);\n  gameOfLifeView.setDeadColor(Color.RED);\n  gameOfLifeView.setAliveColor(Color.BLUE);\n  setContentView(gameOfLifeView);\n}\n```\n\n...and run the game with:\n\n``` java\n  gameOfLifeView.begin();\n```\n\n## Custom params\n\nFrom now you can customize the attributes:\n\n- Proportion: The value which the view will use to calculate the cell size and the number of columns and rows the game will have.\n- Colors: Dead and alive cells can have any given color.\n\n## License\n\n    Copyright 2011, 2012 Thiago Rocha\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagokimo%2Fgameoflifeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagokimo%2Fgameoflifeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagokimo%2Fgameoflifeview/lists"}