{"id":19430270,"url":"https://github.com/8dcc/sudoku","last_synced_at":"2026-06-15T21:31:27.072Z","repository":{"id":152864593,"uuid":"570536662","full_name":"8dcc/sudoku","owner":"8dcc","description":"Simple sudoku game (and CLI solver) for the terminal using ncurses and written in C","archived":false,"fork":false,"pushed_at":"2025-12-30T11:45:03.000Z","size":84,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T02:27:51.138Z","etag":null,"topics":["c","cli","ncurses","sudoku","sudoku-generator","sudoku-solver"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/8dcc.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-25T12:31:38.000Z","updated_at":"2025-12-30T11:45:08.000Z","dependencies_parsed_at":"2023-07-23T08:00:09.928Z","dependency_job_id":null,"html_url":"https://github.com/8dcc/sudoku","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/8dcc/sudoku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsudoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsudoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsudoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsudoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8dcc","download_url":"https://codeload.github.com/8dcc/sudoku/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fsudoku/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34381758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":["c","cli","ncurses","sudoku","sudoku-generator","sudoku-solver"],"created_at":"2024-11-10T14:24:12.513Z","updated_at":"2026-06-15T21:31:27.067Z","avatar_url":"https://github.com/8dcc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku\n**Simple sudoku for the terminal using ncurses and written in C.**\n\n![ss1](https://user-images.githubusercontent.com/29655971/227586109-f89fe2d0-bc6c-4d11-9c30-dd0d8eac2565.png)\n![ss2](https://user-images.githubusercontent.com/29655971/227586117-b1c33200-f3c5-409d-b168-860b6a22002c.png)\n\n### Building\nSimply run:\n```bash\ngit clone https://github.com/8dcc/sudoku\ncd sudoku\n\n# For the game itself\nmake sudoku.out\n\n# From a simple text solver\nmake solver.out\n\n# Or both at once\nmake\n```\n\nIf you don't want the **game** to show colors (for ncurses) simply comment this line in [`src/game/globals.h`](https://github.com/8dcc/sudoku/blob/dabfb31086e15f60f837844885fabe533d98c2aa/src/game/globals.h#L5-L8).\n\nIf you don't want the **solver** program to show colors (for example for some windows terminals or for redirecting the output) simply comment this line in [`src/solver/defines.h`](https://github.com/8dcc/sudoku/blob/dabfb31086e15f60f837844885fabe533d98c2aa/src/solver/defines.h#L2-L7).\n\n```c\n/*\n * Comment this line if you don't want colors!\n * Will not print with colors if not defined, useful for redirecting the output of\n * the command.\n */\n#define USE_COLOR\n```\n\n### Playing the game\nSimply run:\n```console\n$ ./sudoku.out --help\nUsage:\n    ./sudoku.out            - Run with default difficulty.\n    ./sudoku.out \u003cnumber\u003e   - Where number is the number of cells that are going to be filled. [1-80]\n```\n\n### Using the solver\nThe solver program will try to read from the filename specified as argument, or stdin if none. The program checks if stdin is a piped file or command output (only on linux) and prints the usage if not.\n```console\n$ ./solver.out filename.txt\n...\n\n$ ./solver.out \u003c filename.txt\n...\n\n$ cat filename.txt | ./solver.out\n...\n\n$ ./solver.out      # Will only check for pipes on linux\nUsage:\n    ./solver.out file.txt\n    ./solver.out \u003c file.txt\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Fsudoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8dcc%2Fsudoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Fsudoku/lists"}