{"id":25422405,"url":"https://github.com/lavantien/sudoku-cli","last_synced_at":"2025-05-13T20:36:11.492Z","repository":{"id":121275835,"uuid":"225112626","full_name":"lavantien/sudoku-cli","owner":"lavantien","description":"A CLI tool for creating and solving sudoku at any difficulty.","archived":false,"fork":false,"pushed_at":"2023-06-25T04:14:43.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T20:35:22.883Z","etag":null,"topics":["backtracking","c","cli","sudoku"],"latest_commit_sha":null,"homepage":"","language":"C","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/lavantien.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,"zenodo":null}},"created_at":"2019-12-01T05:42:39.000Z","updated_at":"2024-12-18T00:46:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"40daf7a6-8574-4769-a4d0-4774ec9d204c","html_url":"https://github.com/lavantien/sudoku-cli","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/lavantien%2Fsudoku-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavantien%2Fsudoku-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavantien%2Fsudoku-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavantien%2Fsudoku-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lavantien","download_url":"https://codeload.github.com/lavantien/sudoku-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254021682,"owners_count":22000975,"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":["backtracking","c","cli","sudoku"],"created_at":"2025-02-16T21:33:08.020Z","updated_at":"2025-05-13T20:36:11.476Z","avatar_url":"https://github.com/lavantien.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku CLI\n\nA CLI tool for solving sudoku puzzle with a blazingly fast speed.\nUsing optimized backtracking: reduce the decision space for each cell before backtracking, even solved the puzzle already without even backtracking.\n\n### Build\n\n- Run `make` in terminal.\n\n### Usage\n\n- Run `./main` in terminal.\n- `0` for single line input\n- `1` for grid input\n- Any other numbers to quit\n\n### Input\n\n- \u003chttps://qqwing.com/generate.html\u003e\n\n### Dev Logs\n\n- Fixing `fgets` bugs: \u003chttps://youtu.be/PKOUQ61ObqE\u003e\n\n### Example Run:\n\n```\n1\n.5.......\n9.41.....\n....5...6\n..1.27.6.\n.43.....2\n.9651....\n.69....74\n...3....9\n3.....25.\n\n.5.|...|...\n9.4|1..|...\n...|.5.|..6\n___ ___ ___\n..1|.27|.6.\n.43|...|..2\n.96|51.|...\n___ ___ ___\n.69|...|.74\n...|3..|..9\n3..|...|25.\n\n652|734|198\n934|168|725\n817|952|436\n___ ___ ___\n581|427|963\n743|896|512\n296|513|847\n___ ___ ___\n169|285|374\n425|371|689\n378|649|251\n\nPre-solve count: 10\nRecursive count: 0\nExecution time: 0.000086\n```\n\n```\n1\n.......1.\n4........\n.2.......\n....5.4.7\n..8...3..\n..1.9....\n3..4..2..\n.5.1.....\n...8.6...\n\n...|...|.1.\n4..|...|...\n.2.|...|...\n___ ___ ___\n...|.5.|4.7\n..8|...|3..\n..1|.9.|...\n___ ___ ___\n3..|4..|2..\n.5.|1..|...\n...|8.6|...\n\n693|784|512\n487|512|936\n125|963|874\n___ ___ ___\n932|651|487\n568|247|391\n741|398|625\n___ ___ ___\n319|475|268\n856|129|743\n274|836|159\n\nPre-solve count: 2\nRecursive count: 25333461\nExecution time: 0.440439\n```\n\n```\n0\n....9....2.7...1.96..1.5..45.6.1.9.3...7.9....9..5..4..3.....6..2.9.1.7....8.3...\n\n...|.9.|...\n2.7|...|1.9\n6..|1.5|..4\n___ ___ ___\n5.6|.1.|9.3\n...|7.9|...\n.9.|.5.|.4.\n___ ___ ___\n.3.|...|.6.\n.2.|9.1|.7.\n...|8.3|...\n\n413|297|658\n257|648|139\n689|135|724\n___ ___ ___\n576|412|983\n342|789|516\n198|356|247\n___ ___ ___\n931|574|862\n824|961|375\n765|823|491\n\nPre-solve count: 2\nRecursive count: 8107\nExecution time: 0.000185\n```\n\n```\n0\n8..........36......7..9.2...5...7.......457.....1...3...1....68..85...1..9....4..\n\n8..|...|...\n..3|6..|...\n.7.|.9.|2..\n___ ___ ___\n.5.|..7|...\n...|.45|7..\n...|1..|.3.\n___ ___ ___\n..1|...|.68\n..8|5..|.1.\n.9.|...|4..\n\n812|753|649\n943|682|175\n675|491|283\n___ ___ ___\n154|237|896\n369|845|721\n287|169|534\n___ ___ ___\n521|974|368\n438|526|917\n796|318|452\n\nPre-solve count: 1\nRecursive count: 72097\nExecution time: 0.001656\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavantien%2Fsudoku-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flavantien%2Fsudoku-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavantien%2Fsudoku-cli/lists"}