First pass at a sudoku solver: Puzzle Import
Imports a puzzle from a string and displays the restricted puzzle.
This commit is contained in:
commit
bcc5b5097e
8 changed files with 179 additions and 0 deletions
11
solver.cpp
Normal file
11
solver.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <iostream>
|
||||
|
||||
#include "solver/puzzle.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
Puzzle puzzle = Puzzle::FromString(
|
||||
"3..4.162.1...8.4....5.2.83..578........7..5.3..29.4..748.53..1.2.3.9...."
|
||||
".7...6.9.");
|
||||
std::cout << "https://tiramisu.one/sudoku.html?p=" << puzzle.CurrentState()
|
||||
<< "&m=" << puzzle.PencilMarkState() << std::endl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue