{"id":19545140,"url":"https://github.com/scscms/sudoku","last_synced_at":"2026-02-28T20:39:11.813Z","repository":{"id":93555148,"uuid":"588584139","full_name":"scscms/Sudoku","owner":"scscms","description":"数独js解法","archived":false,"fork":false,"pushed_at":"2024-11-13T09:49:59.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T05:42:46.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/scscms.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":"2023-01-13T13:36:23.000Z","updated_at":"2024-11-13T09:50:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"3def70fe-e8f9-47a0-807f-b461a848620b","html_url":"https://github.com/scscms/Sudoku","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scscms/Sudoku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scscms%2FSudoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scscms%2FSudoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scscms%2FSudoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scscms%2FSudoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scscms","download_url":"https://codeload.github.com/scscms/Sudoku/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scscms%2FSudoku/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29951659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-11T03:35:15.480Z","updated_at":"2026-02-28T20:39:11.785Z","avatar_url":"https://github.com/scscms.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku \u003csup\u003eshine\u003c/sup\u003e\n\n源于我家小公主要做数独作业，一生气就肝了一晚写了一个解题方法。几经改进就成就了此项目。\n### 数独\n\u003e数独（shù dú）是源自18世纪瑞士的一种数学游戏。是一种运用纸、笔进行演算的逻辑游戏。玩家需要根据9×9盘面上的已知数字，推理出所有剩余空格的数字，并满足每一行、每一列、每一个粗线宫（3*3）内的数字均含1-9，不重复。\n数独盘面是个九宫，每一宫又分为九个小格。在这八十一格中给出一定的已知数字和解题条件，利用逻辑和推理，在其他的空格上填入1-9的数字。使1-9每个数字在每一行、每一列和每一宫中都只出现一次，所以又称“九宫格”。\n\n### 解法\n```\n  1、过滤出所有空格，并计算出可能值._val，排序后提取可能值越少的元素放入尝试数组testList。\n  2、从testList中取出一个元素，尝试可能值：\n    2.1、testList中已经无值，说明尝试结束。\n    2.1、尝试失败，删除此元素，返回上一步。\n    2.3、尝试成功，继续尝试当前元素其他可能值。\n    2.4、尝试未完成，继续第1步，并加入尝试数组继续尝试。\n  功能：\n    一、出题：\n      1、手动出题（输入过程自动纠正）\n      2、随机出题（一键生成）\n        2.1、难度调整\n    二、解题：\n     1、手动解题\n        1.1、是否开启自动纠正\n        1.2、是否开启提示\n        1.3、确认（校验结果）\n     2、自动解题\n        2.1、是否开启秒解（否则需要按下一步的按钮）\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscscms%2Fsudoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscscms%2Fsudoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscscms%2Fsudoku/lists"}