{"id":15733960,"url":"https://github.com/tomwright/sudoku","last_synced_at":"2026-02-03T20:02:11.841Z","repository":{"id":57604173,"uuid":"247486008","full_name":"TomWright/sudoku","owner":"TomWright","description":"Solve sudoku puzzles automatically.","archived":false,"fork":false,"pushed_at":"2020-03-16T23:45:33.000Z","size":38,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T07:56:26.202Z","etag":null,"topics":["golang","sudoku","sudoku-puzzle","sudoku-solution-finder","sudoku-solver"],"latest_commit_sha":null,"homepage":"","language":"Go","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/TomWright.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":"2020-03-15T14:46:58.000Z","updated_at":"2023-04-10T11:46:19.000Z","dependencies_parsed_at":"2022-09-04T11:42:12.468Z","dependency_job_id":null,"html_url":"https://github.com/TomWright/sudoku","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TomWright/sudoku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fsudoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fsudoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fsudoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fsudoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomWright","download_url":"https://codeload.github.com/TomWright/sudoku/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomWright%2Fsudoku/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264757253,"owners_count":23659314,"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":["golang","sudoku","sudoku-puzzle","sudoku-solution-finder","sudoku-solver"],"created_at":"2024-10-04T01:00:47.446Z","updated_at":"2026-02-03T20:02:11.755Z","avatar_url":"https://github.com/TomWright.png","language":"Go","readme":"# sudoku\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/TomWright/sudoku)](https://goreportcard.com/report/github.com/TomWright/sudoku)\n[![Documentation](https://godoc.org/github.com/TomWright/sudoku?status.svg)](https://godoc.org/github.com/TomWright/sudoku)\n![Test](https://github.com/TomWright/sudoku/workflows/Test/badge.svg)\n![Build](https://github.com/TomWright/sudoku/workflows/Build/badge.svg)\n\nAutomatically solve sudoku puzzles of any size.\n\n## Usage\n\nDownload an executable from the [latest release](https://github.com/TomWright/sudoku/releases/latest), or build locally.\n\nYou may have to `chmod +x` the download file.\n\nWrite our unsolved puzzle to a file:\n```\necho \"6 0 0 0 0 0 1 5 0\n9 5 4 7 1 0 0 8 0\n0 0 0 5 0 2 6 0 0\n8 0 0 0 9 4 0 0 6\n0 0 3 8 0 5 4 0 0\n4 0 0 3 7 0 0 0 8\n0 0 6 9 0 3 0 0 0\n0 2 0 0 4 7 8 9 3\n0 4 9 0 0 0 0 0 5\" \u003e unsolved_puzzle.txt\n```\n\nRun the `sudoku` command:\n```\nsudoku -in unsolved_puzzle.txt -out solved_puzzle.txt\n```\n\nView the solved puzzle:\n```\ncat solved_puzzle.txt\n```\n\nWhich gives you:\n```\n6 3 2 4 8 9 1 5 7\n9 5 4 7 1 6 3 8 2\n1 7 8 5 3 2 6 4 9\n8 1 7 2 9 4 5 3 6\n2 9 3 8 6 5 4 7 1\n4 6 5 3 7 1 9 2 8\n7 8 6 9 5 3 2 1 4\n5 2 1 6 4 7 8 9 3\n3 4 9 1 2 8 7 6 5\n```\n\n## Puzzle requirements\n\nPuzzle sizes must be correct otherwise you may get unexpected results.\n\nA puzzle should have a size of:\n- 2x2\n- 3x3\n- 4x4\n- 5x5\n- etc\n\nSee the examples on godoc for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwright%2Fsudoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomwright%2Fsudoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomwright%2Fsudoku/lists"}