-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: solve sudoku puzzle #1
base: main
Are you sure you want to change the base?
Conversation
"""Make a random puzzle with N or more assignments. Restart on contradictions. | ||
Note the resulting puzzle is not guaranteed to be solvable, but empirically | ||
about 99.8% of them are solvable. Some have multiple solutions.""" | ||
values = dict((s, digits) for s in squares) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是一个重复计算的值?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
什么叫重复计算的值?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该是一个常量,只要计算一次即可。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不知道你在说什么
我觉得这个写法需要更加 readable,比如和 gameplay 一样使用 number[][] 作为数据结构。
|
|
No description provided.