Giter Club home page Giter Club logo

fuck_shudu's Introduction

破解方法

将数独转化为一个9维的数组,其中空值设置为0,从第一个0值开始尝试填入(1-9),判断是否符合数独的规则,每行每列每宫不重复,符合则迭代寻找下一0值,并继续尝试填入数字,若无符合的数字,则返回上一数字并+1,继续测试,直到破解为止,该过程一般需要几万次尝试,但花费总时间不会超过1s

用法

下载到本地,cmd到该目录

在ipython环境,导入sd文件,复制数独页面的网址(这里只支持抓取不需登陆的数独网址)

上者抓取的数独返回list,将给list传递给sd.Fuck_shudu()类,并调用start()开始破解

fuck_shudu's People

Contributors

blackandrechen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.