Update the one-off solver to take the puzzle as a CLI arg
This commit is contained in:
parent
5e1faa90f5
commit
e130c83cb6
|
@ -3,9 +3,11 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
Solver solver(
|
if (argc < 2) {
|
||||||
"068700900004000071030809050300080100040005007007304092602001005000020600"
|
std::cout << "Please provide a puzzle to solve" << std::endl;
|
||||||
"059030028");
|
return 1;
|
||||||
|
}
|
||||||
|
Solver solver(argv[1]);
|
||||||
if (!solver.Solve()) {
|
if (!solver.Solve()) {
|
||||||
std::cout << "Error! Couldn't Solve" << std::endl;
|
std::cout << "Error! Couldn't Solve" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue