{"id":17928654,"url":"https://github.com/hartwork/constraint-sudoku-solver","last_synced_at":"2025-04-03T09:43:59.831Z","repository":{"id":31782512,"uuid":"35348922","full_name":"hartwork/constraint-sudoku-solver","owner":"hartwork","description":":game_die: Simple command line Sudoku solver making use of the python-constraint library","archived":false,"fork":false,"pushed_at":"2015-05-09T23:52:35.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T23:16:11.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hartwork.png","metadata":{"files":{"readme":"README.asciidoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-09T23:10:11.000Z","updated_at":"2016-05-23T17:45:55.000Z","dependencies_parsed_at":"2022-09-10T16:21:04.089Z","dependency_job_id":null,"html_url":"https://github.com/hartwork/constraint-sudoku-solver","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/hartwork%2Fconstraint-sudoku-solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fconstraint-sudoku-solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fconstraint-sudoku-solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Fconstraint-sudoku-solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hartwork","download_url":"https://codeload.github.com/hartwork/constraint-sudoku-solver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981151,"owners_count":20863825,"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-10-28T21:04:33.641Z","updated_at":"2025-04-03T09:43:59.813Z","avatar_url":"https://github.com/hartwork.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"About\n-----\n*constraint-sudoku-solver* is\n\n * a simple https://en.wikipedia.org/wiki/Sudoku[Sudoku] solver\n\n * making use of\n   https://labix.org/python-constraint[the python-constraint library]\n\n * licensed under the\n   https://www.gnu.org/licenses/agpl-3.0.html[GNU _Affero_ General Public License 3.0 or later].\n\n\nUsage\n-----\nThis is how to feed a puzzle to the solver:\n\n--------------------------------------------------------------------------------\n# cat examples/single_solution.txt\n_ _ _ | _ 6 8 | _ 1 _\n1 _ _ | _ _ _ | 7 _ _\n_ 4 3 | 2 _ _ | 5 _ _\n------+-------+------\n3 _ _ | _ _ _ | 4 _ _\n8 _ _ | _ _ _ | _ _ 9\n_ _ 1 | _ _ _ | _ _ 6\n------+-------+------\n_ _ 6 | _ _ 4 | 8 5 _\n_ _ 2 | _ _ _ | _ _ 7\n_ 1 _ | 5 9 _ | _ _ _\n\n# ./constraint-sudoku-solver examples/single_solution.txt \nTrying to solve...\n\nSolution:\n  2 7 5 | 9 6 8 | 3 1 4\n  1 8 9 | 4 3 5 | 7 6 2\n  6 4 3 | 2 7 1 | 5 9 8\n  ------+-------+------\n  3 2 7 | 6 1 9 | 4 8 5\n  8 6 4 | 7 5 2 | 1 3 9\n  9 5 1 | 8 4 3 | 2 7 6\n  ------+-------+------\n  7 9 6 | 3 2 4 | 8 5 1\n  5 3 2 | 1 8 6 | 9 4 7\n  4 1 8 | 5 9 7 | 6 2 3\n\nTook 0.032 seconds to find.\nGiven problem IS a true Sokudo.\n--------------------------------------------------------------------------------\n\nFor more options, check the `--help` output:\n\n--------------------------------------------------------------------------------\n# ./constraint-sudoku-solver --help\nusage: constraint-sudoku-solver [-h] [--echo] [--duration SECONDS] FILE\n\npositional arguments:\n  FILE                file with puzzle to solve (see examples for puzzle\n                      syntax)\n\noptional arguments:\n  -h, --help          show this help message and exit\n  --echo              dump puzzle about to solve\n  --duration SECONDS  seconds to stop searching for additional solutions after\n                      (default: 0.1)\n--------------------------------------------------------------------------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Fconstraint-sudoku-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhartwork%2Fconstraint-sudoku-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Fconstraint-sudoku-solver/lists"}