{"id":15713724,"url":"https://github.com/henrikac/sudoku-solver","last_synced_at":"2025-08-03T23:39:32.703Z","repository":{"id":140271187,"uuid":"376869046","full_name":"henrikac/sudoku-solver","owner":"henrikac","description":"An easy-to-use sudoku solver","archived":false,"fork":false,"pushed_at":"2021-06-14T15:22:01.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T02:04:07.071Z","etag":null,"topics":["crystal","crystal-lang","crystal-language"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/henrikac.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":"2021-06-14T15:20:44.000Z","updated_at":"2022-10-12T23:39:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2eb4b36-7fbd-4aad-a006-db93ef7c59c5","html_url":"https://github.com/henrikac/sudoku-solver","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/henrikac/sudoku-solver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Fsudoku-solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Fsudoku-solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Fsudoku-solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Fsudoku-solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henrikac","download_url":"https://codeload.github.com/henrikac/sudoku-solver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrikac%2Fsudoku-solver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268629570,"owners_count":24281171,"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-03T02:00:12.545Z","response_time":2577,"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":["crystal","crystal-lang","crystal-language"],"created_at":"2024-10-03T21:33:06.870Z","updated_at":"2025-08-03T23:39:32.590Z","avatar_url":"https://github.com/henrikac.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sudoku-solver\n\nSudoku solver - inspired by [Tech With Tim](https://www.youtube.com/channel/UC4JX40jDee_tINbkjycV4Sg).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     sudoku-solver:\n       github: henrikac/sudoku-solver\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"sudoku-solver\"\n\ninput = [\n  [5, 3, 0, 0, 7, 0, 0, 0, 0],\n  [6, 0, 0, 1, 9, 5, 0, 0, 0],\n  [0, 9, 8, 0, 0, 0, 0, 6, 0],\n  [8, 0, 0, 0, 6, 0, 0, 0, 3],\n  [4, 0, 0, 8, 0, 3, 0, 0, 1],\n  [7, 0, 0, 0, 2, 0, 0, 0, 6],\n  [0, 6, 0, 0, 0, 0, 2, 8, 0],\n  [0, 0, 0, 4, 1, 9, 0, 0, 5],\n  [0, 0, 0, 0, 8, 0, 0, 7, 9]\n]\nboard = Sudoku::Board.new(input)\n\nif Sudoku::Solver.solve(board) # solves in place\n  puts \"solved!\"\nelse\n  puts \"not solved!\"\nend\n```\n\n#### Exceptions\n+ A `Sudoku::EmptyBoardError` is raised if the user tries to solve an empty sudoku board.\n+ A `Sudoku::InvalidBoardError` is raised if a user tries to create a sudoku board with the wrong dimensions (must be 9x9).\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/henrikac/sudoku-solver/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Henrik Christensen](https://github.com/henrikac) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrikac%2Fsudoku-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenrikac%2Fsudoku-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrikac%2Fsudoku-solver/lists"}