wokste / sudokugen Goto Github PK
View Code? Open in Web Editor NEWA simple sudoku generator in c++
License: MIT License
A simple sudoku generator in c++
License: MIT License
In PuzzleGen::iterativeReduce
the following line is meant as a speed optimization: solver.requiredSquare = Point::fromIndex(id, puzzle.width);
Unfortunately, the unoptimized code doesn't work. When commenting it out, the algorithm doesn't find any digits to remove. This bug may block #3, so it is likely that this blocks the milestone as well.
AT: 1). Commenting said line generates valid sudoku's. 2). There is a unit-test to catch the bug, if applicable.
I would like to add the only valid location technique to the solver. This checks what numbers in a zone can only be placed on a single square.
Benefits:
AT: the technique is implemented and shown using a unit-test that it works.
The current sudoku's are way too easy. To solve this, I would like to:
a) Be able to rate the difficulty of a sudoku. (It doesn't have to be perfect yet).
b) Iteratively optimize a sudoku for a harder difficulty.
An iteration has the following steps:
PuzzleGen::fillEmpty currently always outputs the same grid. While it is ok for the first tests, this has several problems. First, it is very boring. Second it limits sudoku's to 9x9 grids. To solve this, I want to generate a filled grid.
The currently suggested algorithm is:
Should the solver fail to generate a grid, it should return nullopt. The caller already has a retry strategy.
When this is done, I should add an issue "check tutorial" and someone else should do this.
The two techniques should have unittests. This confirms whether the techniques are working correctly.
I would like to show sudoku's to friends. For this, I don't want to have a console window. Instead, generate SVGs
AT: A readable exported SVG image representing the svg.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.