Git Product home page Git Product logo

sudokugame's Introduction

Introduction

与同学合作的数独游戏和解数独程序,编译好的程序和模块在BIN目录下,解数独源程序在CaaeSudoku目录下,GUI源程序在UISourceCode目录下。

Statement

数独求解模块

sudoku.exe是命令行程序,支持下列命令行参数:

  1. -s file_path:从file_path中读取文件,将文件中的数独解出,写入另一个文件sudoku.txt中,注意两个文件的格式(包括下面的)均为:
    x x x x x x x x x
    x x x x x x x x x
    ......
    即数独9*9,每行两数之间加空格,行末尾无回车,两个数独之间空一行;

  2. -c N:生成N个不重复的数独终局至同目录下文件sudoku.txt中;

  3. -n <number> -m <mode>:生成number个难度为mode的数独题目至同目录下文件sudoku.txt中,其中number范围为[1,10000],mode为1,2,3,分别表示3种难度;

  4. -n <number> -r <lower>~<upper> -u:-r与-u参数可选其一或其二;
    lower和upper表示生成的数独题目空的数目的上下限,范围为[20,55],注意upper>=lower;
    -u参数指定其是否唯一解;
    使用-n参数的命令各个参数顺序可调换;

游戏说明

制作的数独游戏在BIN目录下的SudokuGUI.rar中,下载下来解压后的文件中,打开SudokuGame.exe即可,注意不能随意删掉文件中的库文件或是移动SudokuGame.exe的位置;

界面展示

image1

image2

sudokugame's People

Contributors

felixcaae avatar

Watchers

 avatar  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.