{"id":26241112,"url":"https://github.com/robertograham/rleparser","last_synced_at":"2025-03-13T08:19:29.050Z","repository":{"id":57734643,"uuid":"141328847","full_name":"RobertoGraham/RLEParser","owner":"RobertoGraham","description":"Parse .rle files (Game of Life)","archived":false,"fork":false,"pushed_at":"2018-08-13T18:03:37.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-28T10:10:51.171Z","etag":null,"topics":["gameoflife","rle","run-length-encoding"],"latest_commit_sha":null,"homepage":null,"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/RobertoGraham.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":"2018-07-17T18:33:50.000Z","updated_at":"2018-07-29T01:27:31.000Z","dependencies_parsed_at":"2022-09-26T22:10:49.823Z","dependency_job_id":null,"html_url":"https://github.com/RobertoGraham/RLEParser","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2FRLEParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2FRLEParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2FRLEParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobertoGraham%2FRLEParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobertoGraham","download_url":"https://codeload.github.com/RobertoGraham/RLEParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243365910,"owners_count":20279260,"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":["gameoflife","rle","run-length-encoding"],"created_at":"2025-03-13T08:19:28.332Z","updated_at":"2025-03-13T08:19:29.005Z","avatar_url":"https://github.com/RobertoGraham.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.robertograham/rle-parser/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.robertograham/rle-parser)\n# RLEParser\nReads Game of Life .rle files\n\n## Install\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.robertograham\u003c/groupId\u003e\n    \u003cartifactId\u003erle-parser\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\nglider.rle\n```\n#C This is a glider.\nx = 3, y = 3\nbo$2bo$3o!\n```\n```java\nimport io.github.robertograham.rleparser.RleParser;\nimport io.github.robertograham.rleparser.domain.LiveCells;\nimport io.github.robertograham.rleparser.domain.PatternData;\n\nimport java.net.URISyntaxException;\nimport java.util.stream.Collectors;\nimport java.util.stream.IntStream;\n\npublic class Main {\n\n    public static void main(String[] args) throws URISyntaxException {\n        PatternData patternData = RleParser.readPatternData(Main.class.getClassLoader().getResource(\"glider.rle\").toURI());\n\n        System.out.println(IntStream.range(0, patternData.getMetaData().getHeight())\n                .mapToObj(patternData.getLiveCells()::filteredByY)\n                .map(filteredByY -\u003e IntStream.range(0, patternData.getMetaData().getWidth())\n                        .mapToObj(filteredByY::filteredByX)\n                        .map(LiveCells::getCoordinates)\n                        .map(coordinates -\u003e coordinates.size() == 0 ? \".\" : \"@\")\n                        .collect(Collectors.joining()))\n                .collect(Collectors.joining(\"\\n\")));\n    }\n}\n```\nPrints:\n```\n.@.\n..@\n@@@\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertograham%2Frleparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertograham%2Frleparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertograham%2Frleparser/lists"}