{"id":22884874,"url":"https://github.com/jonas-is-coding/sudoku-bruteforce","last_synced_at":"2025-03-31T17:54:03.949Z","repository":{"id":261690930,"uuid":"885055628","full_name":"jonas-is-coding/sudoku-bruteforce","owner":"jonas-is-coding","description":"A Sudoku solver via brute forcing in C++","archived":false,"fork":false,"pushed_at":"2024-11-17T12:11:34.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T22:42:14.992Z","etag":null,"topics":["brute-force","cpp","solver","sudoku"],"latest_commit_sha":null,"homepage":"https://www.jonasbrahmst.me/blog/create-a-sudoku-bruteforcing-script-in-cpp","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/jonas-is-coding.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":"2024-11-07T21:51:17.000Z","updated_at":"2024-11-17T12:11:37.000Z","dependencies_parsed_at":"2024-11-07T22:39:46.542Z","dependency_job_id":"8916c655-eb69-4c3f-81fa-4181b8015b47","html_url":"https://github.com/jonas-is-coding/sudoku-bruteforce","commit_stats":null,"previous_names":["jonas-is-coding/sudoku-bruteforce"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas-is-coding%2Fsudoku-bruteforce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas-is-coding%2Fsudoku-bruteforce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas-is-coding%2Fsudoku-bruteforce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas-is-coding%2Fsudoku-bruteforce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonas-is-coding","download_url":"https://codeload.github.com/jonas-is-coding/sudoku-bruteforce/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246514042,"owners_count":20790013,"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":["brute-force","cpp","solver","sudoku"],"created_at":"2024-12-13T19:29:05.388Z","updated_at":"2025-03-31T17:54:03.931Z","avatar_url":"https://github.com/jonas-is-coding.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku Brute Forcer\n\nThis project implements a Sudoku solver via brute forcing in C++. The solver can solve any given Sudoku puzzle, with varying difficulty levels.\n\n\n## Inspiration\n\nThis project was inspired by a [YouTube Shorts video](https://www.youtube.com/watch?app=desktop\u0026v=4c_16yiQBfI). Later, I wrote a [blog article](https://www.jonasbrahmst.me/blog/create-a-sudoku-bruteforcing-script-in-cpp) explaining how I implemented the solver and the steps I took to build it. Feel free to check out both resources for a more detailed explanation!\n\n## Requirements\n\n- C++11 or later\n- A C++ compiler (e.g., `g++`)\n\n## Installation\n\n1. Clone this repository:\n```bash\ngit clone https://github.com/jonas-is-coding/sudoku-solver.git\n```\n2.\tNavigate to the project directory:\n```bash\ncd sudoku-solver\n```\n3.\tCompile the project using g++:\n```bash\ng++ -std=c++11 -O2 main.cpp -o sudoku-solver\n```\n4.\tRun the executable:\n```bash\n./sudoku-solver\n```\n\n## Usage\n\n1.\tGenerating a Sudoku Puzzle: The program generates a new Sudoku puzzle based on the specified fill percentage, where a higher percentage means an easier puzzle.\n2.\tSolving a Sudoku Puzzle: If a Sudoku puzzle is provided as input, the program will solve it using a backtracking algorithm.\n\n## File Structure\n\n- main.cpp: Main entry point of the application.\n- solve.hpp and solve.cpp: Contains the logic for solving the Sudoku puzzle.\n- generate.hpp and generate.cpp: Contains the logic for generating Sudoku puzzles.\n- check.hpp: Contains the validation functions for checking whether a Sudoku puzzle is valid.\n- types.hpp: Defines the board structure (board_t), a 9x9 matrix representing the Sudoku grid.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonas-is-coding%2Fsudoku-bruteforce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonas-is-coding%2Fsudoku-bruteforce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonas-is-coding%2Fsudoku-bruteforce/lists"}