{"id":22343882,"url":"https://github.com/miou-zora/sudoku-java-ccursed","last_synced_at":"2025-08-24T05:15:50.032Z","repository":{"id":242411272,"uuid":"809458726","full_name":"Miou-zora/sudoku-JAVA-ccursed","owner":"Miou-zora","description":"Sudoku solver using java stream","archived":false,"fork":false,"pushed_at":"2024-06-02T18:56:18.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T11:27:47.425Z","etag":null,"topics":["cursed","java","java-ccursed","stream","sudoku"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Miou-zora.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-02T18:40:18.000Z","updated_at":"2024-11-28T08:05:35.000Z","dependencies_parsed_at":"2024-06-02T21:52:38.049Z","dependency_job_id":null,"html_url":"https://github.com/Miou-zora/sudoku-JAVA-ccursed","commit_stats":null,"previous_names":["miou-zora/sudoku-java-ccursed"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miou-zora%2Fsudoku-JAVA-ccursed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miou-zora%2Fsudoku-JAVA-ccursed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miou-zora%2Fsudoku-JAVA-ccursed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miou-zora%2Fsudoku-JAVA-ccursed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Miou-zora","download_url":"https://codeload.github.com/Miou-zora/sudoku-JAVA-ccursed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632425,"owners_count":20647193,"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":["cursed","java","java-ccursed","stream","sudoku"],"created_at":"2024-12-04T09:06:55.352Z","updated_at":"2025-03-26T10:12:01.364Z","avatar_url":"https://github.com/Miou-zora.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sudoku-JAVA-ccursed\n\n```java\n    static private boolean is_valid_sodoku(int [][] grid) {\n        return is_valid_predicate(grid, (row, col) -\u003e col, (row, col) -\u003e row) \u0026\u0026\n                is_valid_predicate(grid, (row, col) -\u003e row, (row, col) -\u003e col) \u0026\u0026\n                is_valid_predicate(grid, (row, col) -\u003e (row / 3 + 3 * (col / 3)), (row, col) -\u003e (row % 3 + 3 * (col % 3)));\n    }\n\n    static private boolean is_valid_predicate(int [][] grid, BiFunction\u003cInteger, Integer, Integer\u003e predi_row, BiFunction\u003cInteger, Integer, Integer\u003e predi_col) {\n        return IntStream.range(0, grid.length)\n                .mapToObj(colIndex -\u003e IntStream.range(0, grid[colIndex].length)\n                        .mapToObj(rowIndex -\u003e grid[predi_row.apply(rowIndex, colIndex)][predi_col.apply(rowIndex, colIndex)]))\n                .allMatch((row) -\u003e row.distinct().mapToInt(i -\u003e i).mapToObj(i -\u003e i \u003e= 1 \u0026\u0026 i \u003c= 9).filter(i -\u003e i).count() == 9);\n    }\n```\n\nThis project is a sudoku resolver written in Java using only streams.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiou-zora%2Fsudoku-java-ccursed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiou-zora%2Fsudoku-java-ccursed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiou-zora%2Fsudoku-java-ccursed/lists"}