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>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
Solver solver(
|
||||
"068700900004000071030809050300080100040005007007304092602001005000020600"
|
||||
"059030028");
|
||||
if (argc < 2) {
|
||||
std::cout << "Please provide a puzzle to solve" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
Solver solver(argv[1]);
|
||||
if (!solver.Solve()) {
|
||||
std::cout << "Error! Couldn't Solve" << std::endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue