数独问题的产生 [英] Generation of sudoku questions

查看:119
本文介绍了数独问题的产生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做数独游戏。我的问题是数独问题的产生。我想提出三个问题的问题。有什么想法可以产生3级问题吗?

I am doing a sudoku game. My problem is the generation of sudoku questions. I want to generate questions in three difficulties. Is there any idea to generate 3 level questions?

推荐答案

如果我们使用预先生成的数独难题,也许您可​​以看一下:
http://www.setbb.com/phpbb/viewtopic.php?t= 102& mforum = sudoku

If we go for pre generated sudoku puzzles, maybe you could have a look at this : http://www.setbb.com/phpbb/viewtopic.php?t=102&mforum=sudoku

我们在Linux发行版中使用了终端数独

we used terminal sudoku in the Linux distributions

批处理生成器模式。
网站关闭了,但是它包装了一些Linux发行版。

it has a batch generator mode. the website is down but it is packaged for some linux distributions.

为每个级别生成拼图:容易,中等和困难

generate puzzles for each level : easy, medium and hard

sudoku -fcompact -ceasy -g5>sudoku_easy.txt
sudoku -fcompact -cmedium -g5>sudoku_medium.txt
sudoku -fcompact -chard -g5>sudoku_hard.txt

解决难题

sudoku -fcompact -v sudoku_easy.txt >sudoku_easy-resolved.txt
sudoku -fcompact -v sudoku_medium.txt >sudoku_medium-resolved.txt
sudoku -fcompact -v sudoku_hard.txt >sudoku_hard-resolved.txt

我检查了一些他们,他们只有一个解决方案。

I checked some of them and they had only one solution.

这篇关于数独问题的产生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆