{"id":16783517,"url":"https://github.com/albinotonnina/sudoku-solver-backtracking-algorithm","last_synced_at":"2026-04-17T15:33:41.377Z","repository":{"id":143080052,"uuid":"111301931","full_name":"albinotonnina/sudoku-solver-backtracking-algorithm","owner":"albinotonnina","description":"Learning to solve a sudoku with backtracking algorithms","archived":false,"fork":false,"pushed_at":"2018-01-15T00:31:31.000Z","size":1741,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T21:48:53.166Z","etag":null,"topics":["algorithm","algorithm-challenges","backtracking-algorithm","javascript","jest","nodejs","sudoku","tdd"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/albinotonnina.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":"2017-11-19T14:22:07.000Z","updated_at":"2023-03-08T13:56:25.000Z","dependencies_parsed_at":"2023-04-20T14:32:41.217Z","dependency_job_id":null,"html_url":"https://github.com/albinotonnina/sudoku-solver-backtracking-algorithm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/albinotonnina/sudoku-solver-backtracking-algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinotonnina%2Fsudoku-solver-backtracking-algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinotonnina%2Fsudoku-solver-backtracking-algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinotonnina%2Fsudoku-solver-backtracking-algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinotonnina%2Fsudoku-solver-backtracking-algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albinotonnina","download_url":"https://codeload.github.com/albinotonnina/sudoku-solver-backtracking-algorithm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albinotonnina%2Fsudoku-solver-backtracking-algorithm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31934352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["algorithm","algorithm-challenges","backtracking-algorithm","javascript","jest","nodejs","sudoku","tdd"],"created_at":"2024-10-13T07:49:56.301Z","updated_at":"2026-04-17T15:33:41.356Z","avatar_url":"https://github.com/albinotonnina.png","language":"JavaScript","readme":"## Sudoku Solver\n\n### Solved with a backtracking algorithm\n\n![alt text](solution.gif \"Sudoku Solver Backtracking algorithm\")\n\n\n### Functions\n\n**parseBoard**: Parse the string into a 2D array and convert strings to integers for easier manipulation.\n\n**saveEmptyPositions**: Iterate through the board and save all of the empty positions into an array so we can track which numbers are mutable and keep order to our testing.\n\n**checkRow**, **checkColumn**, **check3x3Square**, **checkValue**: Check the column, row, and current 3x3 square for a match to the current value tested, which can all be called with checkValue.\n\n**solvePuzzle**: Take the parsed Sudoku board and the array of empty positions, and find the solution.\n\n**solveSudoku**: Parse the board, save the empty positions, and pass them to solvePuzzle.\n\n\n\n### Install\n`npm install`\n\n### Test\n`npm run test`\n\n### Start\n`npm start`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbinotonnina%2Fsudoku-solver-backtracking-algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbinotonnina%2Fsudoku-solver-backtracking-algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbinotonnina%2Fsudoku-solver-backtracking-algorithm/lists"}