Code Monkey home page Code Monkey logo

sudoku_pyswip's Introduction

sudoku_pyswip

使用pyswip与SWI-Prolog解数独

使用环境

python 3.7.0
SWI-Prolog 7.6.4
pyswip 0.2.2

使用方法

运行sudoku_solutiont.py

  1. 控制台显示

    Solve a sudoku (i) or auto create sudoku? (a)
    

    i与a分别表示手动从控制台输入数独进行求解或者自动生成数独。

  2. 键入i(或a)之后,控制台显示:

    Choose sudoku size : 4 or 9?
    

    选择数独的大小规模。

  3. (1) 若之前选择i

    You should use _ to present a blank.
    

    将数独组织为,分隔的,以_表示空格的一维数组,在控制台输入
    (2) 若之前选择a

    input the hole rate : (0, 1).
    

    选择孔洞概率

  4. 打印数独的解

sudoku_pyswip's People

Contributors

yaopenglalala avatar

Watchers

Tadeusz Kurpiel 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.