{"id":15971595,"url":"https://github.com/dolph/sudoku","last_synced_at":"2025-04-04T15:44:50.916Z","repository":{"id":141852294,"uuid":"241534121","full_name":"dolph/sudoku","owner":"dolph","description":"Experimenting with sudoku","archived":false,"fork":false,"pushed_at":"2024-02-04T22:40:13.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T01:41:23.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/dolph.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-19T04:40:34.000Z","updated_at":"2024-02-04T12:20:26.000Z","dependencies_parsed_at":"2024-02-04T13:31:16.448Z","dependency_job_id":"c3391390-85b3-439c-a478-0e1d9cd3016f","html_url":"https://github.com/dolph/sudoku","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fsudoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fsudoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fsudoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolph%2Fsudoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolph","download_url":"https://codeload.github.com/dolph/sudoku/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208064,"owners_count":20901568,"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-07T20:22:34.666Z","updated_at":"2025-04-04T15:44:50.902Z","avatar_url":"https://github.com/dolph.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku\n\nRenders a Sudoku board by representing the viable choices for any given square.\nFor example, this is the equivalent of a \"blank\" Sudoku board:\n\n```bash\n┏━━━━━━━┯━━━━━━━┯━━━━━━━┳━━━━━━━┯━━━━━━━┯━━━━━━━┳━━━━━━━┯━━━━━━━┯━━━━━━━┓\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┣━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━┫\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┣━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━┫\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃ 1 2 3 │ 1 2 3 │ 1 2 3 ┃\n┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃ 4 5 6 │ 4 5 6 │ 4 5 6 ┃\n┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃ 7 8 9 │ 7 8 9 │ 7 8 9 ┃\n┗━━━━━━━┷━━━━━━━┷━━━━━━━┻━━━━━━━┷━━━━━━━┷━━━━━━━┻━━━━━━━┷━━━━━━━┷━━━━━━━┛\n```\n\nA puzzle might look like this:\n\n```bash\n┏━━━━━━━┯━━━━━━━┯━━━━━━━┳━━━━━━━┯━━━━━━━┯━━━━━━━┳━━━━━━━┯━━━━━━━┯━━━━━━━┓\n┃     3 │     3 │       ┃   2   │       │       ┃       │       │ 1     ┃\n┃ 4 5   │       │   5   ┃       │     6 │   5   ┃       │       │       ┃\n┃       │       │       ┃       │       │     9 ┃ 7     │   8   │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃       │       │   2   ┃       │       │ 1     ┃   2 3 │       │   2 3 ┃\n┃     6 │       │   5   ┃   5   │       │   5   ┃ 4     │       │       ┃\n┃       │   8   │       ┃       │ 7     │       ┃       │     9 │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃ 1     │       │   2   ┃       │     3 │       ┃       │       │   2 3 ┃\n┃       │       │       ┃       │       │ 4     ┃   5   │     6 │       ┃\n┃       │     9 │ 7     ┃   8   │   8   │       ┃       │   8   │       ┃\n┣━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━┫\n┃       │   2   │       ┃ 1     │       │       ┃     3 │       │     3 ┃\n┃       │       │     6 ┃       │       │   5   ┃     6 │ 4     │   5   ┃\n┃   8   │       │ 7     ┃       │     9 │ 7   9 ┃       │       │ 7     ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃     3 │ 1   3 │       ┃       │       │   2   ┃       │ 1     │     3 ┃\n┃       │       │ 4     ┃     6 │       │       ┃       │   5   │   5   ┃\n┃       │ 7     │       ┃       │   8   │       ┃     9 │       │ 7     ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃       │       │ 1     ┃       │       │     3 ┃ 1     │   2   │       ┃\n┃       │   5   │     6 ┃ 4     │ 4     │       ┃     6 │       │       ┃\n┃     9 │       │ 7     ┃ 7   9 │     9 │       ┃       │       │   8   ┃\n┣━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━┫\n┃   2   │ 1     │       ┃     3 │   2   │       ┃ 1 2   │       │       ┃\n┃   5   │     6 │       ┃       │       │     6 ┃       │       │ 4     ┃\n┃       │       │     9 ┃       │       │       ┃   8   │ 7     │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃   2   │       │ 1 2   ┃       │       │       ┃ 1 2   │     3 │       ┃\n┃       │ 4     │       ┃       │   5   │       ┃       │       │     6 ┃\n┃       │       │   8   ┃ 7   9 │       │ 7   9 ┃   8   │       │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃       │       │     3 ┃       │ 1     │       ┃   2   │       │   2   ┃\n┃       │     6 │       ┃ 4     │       │       ┃       │   5   │   5   ┃\n┃ 7     │       │       ┃     9 │       │   8   ┃       │       │     9 ┃\n┗━━━━━━━┷━━━━━━━┷━━━━━━━┻━━━━━━━┷━━━━━━━┷━━━━━━━┻━━━━━━━┷━━━━━━━┷━━━━━━━┛\n```\n\nAnd when fully solved:\n\n```bash\n┏━━━━━━━┯━━━━━━━┯━━━━━━━┳━━━━━━━┯━━━━━━━┯━━━━━━━┳━━━━━━━┯━━━━━━━┯━━━━━━━┓\n┃       │     3 │       ┃   2   │       │       ┃       │       │ 1     ┃\n┃ 4     │       │   5   ┃       │     6 │       ┃       │       │       ┃\n┃       │       │       ┃       │       │     9 ┃ 7     │   8   │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃       │       │   2   ┃       │       │ 1     ┃       │       │     3 ┃\n┃     6 │       │       ┃   5   │       │       ┃ 4     │       │       ┃\n┃       │   8   │       ┃       │ 7     │       ┃       │     9 │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃ 1     │       │       ┃       │     3 │       ┃       │       │   2   ┃\n┃       │       │       ┃       │       │ 4     ┃   5   │     6 │       ┃\n┃       │     9 │ 7     ┃   8   │       │       ┃       │       │       ┃\n┣━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━┫\n┃       │   2   │       ┃ 1     │       │       ┃     3 │       │       ┃\n┃       │       │     6 ┃       │       │   5   ┃       │ 4     │       ┃\n┃   8   │       │       ┃       │     9 │       ┃       │       │ 7     ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃     3 │       │       ┃       │       │   2   ┃       │ 1     │       ┃\n┃       │       │ 4     ┃     6 │       │       ┃       │       │   5   ┃\n┃       │ 7     │       ┃       │   8   │       ┃     9 │       │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃       │       │ 1     ┃       │       │     3 ┃       │   2   │       ┃\n┃       │   5   │       ┃       │ 4     │       ┃     6 │       │       ┃\n┃     9 │       │       ┃ 7     │       │       ┃       │       │   8   ┃\n┣━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━╋━━━━━━━┿━━━━━━━┿━━━━━━━┫\n┃       │ 1     │       ┃     3 │   2   │       ┃       │       │       ┃\n┃   5   │       │       ┃       │       │     6 ┃       │       │ 4     ┃\n┃       │       │     9 ┃       │       │       ┃   8   │ 7     │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃   2   │       │       ┃       │       │       ┃ 1     │     3 │       ┃\n┃       │ 4     │       ┃       │   5   │       ┃       │       │     6 ┃\n┃       │       │   8   ┃     9 │       │ 7     ┃       │       │       ┃\n┠───────┼───────┼───────╂───────┼───────┼───────╂───────┼───────┼───────┨\n┃       │       │     3 ┃       │ 1     │       ┃   2   │       │       ┃\n┃       │     6 │       ┃ 4     │       │       ┃       │   5   │       ┃\n┃ 7     │       │       ┃       │       │   8   ┃       │       │     9 ┃\n┗━━━━━━━┷━━━━━━━┷━━━━━━━┻━━━━━━━┷━━━━━━━┷━━━━━━━┻━━━━━━━┷━━━━━━━┷━━━━━━━┛\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolph%2Fsudoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolph%2Fsudoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolph%2Fsudoku/lists"}