数独生成器VB.NET 2010 [英] Sudoku Generator VB.NET 2010

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

问题描述


我一直在为人们解决数独问题编写一个程序,但想添加一个生成器,该生成器可以制作几种不同等级(轻松,中等等)的9x9数独.我想要的只是将难度解析为一个子或方法,并让它输出两个DataTables(一个使用Sudoku解决,另一个提供答案-也许只有9x18,我可以编写代码来将其分开) .

我曾尝试使用此生成器,但似乎无法使其工作-该生成器是否起作用使实际的数独解决或只是答案?

我还尝试了此生成器-使用SudokuModel库中的Generate方法-我认为可能会更好使用,但我也无法使用它(即使在查找MSDN之后也无法弄清楚Tuple是什么).

如果有人可以帮助我找到合适的生成器,将不胜感激,因为我对生成Sudokus的算法并不十分了解.

Hi
I''ve been making a program for people to solve Sudokus in, but want to add a generator that can make 9x9 Sudokus of a few different grades (Easy, Medium etc). All I want is to parse the difficulty to a sub or method, and have it output two DataTables (one with the Sudoku to solve, the other with the answers - or maybe just one that is 9x18, I can do code to separate it).

I have tried playing around with this generator but can''t seem to make it work - does this generator make the actual Sudoku to solve or just the answers?

I have also tried this generator - using the method Generate in the SudokuModel library - which I think might be better to use, but I can''t get that to work either (haven''t been able to work out what a Tuple is even after looking up MSDN).

If someone could please help me find a suitable generator, it would be greatly appreciated, as I don''t know very much about algorithms for generating Sudokus.

推荐答案

I在CP中发现了其他相同的东西,只要看看这些

另一种Sudoku解算器和生成器 [数独算法:在0.018秒内生成一个有效的数独 [数独算法:避免回溯的策略 [数独 [
I found same other things in CP, just take a look at these

Another Sudoku Solver and Generator[^]
Sudoku Algorithm: Generates a Valid Sudoku in 0.018 seconds[^]
Sudoku Algorithm: Strategies to Avoid Backtracking[^]
Sudoku[^]


如果您在这里找不到喜欢的东西,那他们在CodePlex上.
And if you can''t find anything here to your liking, there''s a TON of them on CodePlex. Results...[^]


尝试 www.setbb.com/sudoku ,其中有一个论坛,专门讨论了数独的方法/算法.发电机.我也希望不久后在vb2005中发布数独求解器/生成器的文章/代码...
Try www.setbb.com/sudoku which has a forum with detailed discussions on approaches/algorithms for sudoku generators. I also hope to shortly post an article/code for a sudoku solver/generator in vb2005...


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

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