Update the one-off solver to take the puzzle as a CLI arg

This commit is contained in:
Drew Galbraith 2023-05-04 01:11:24 -07:00
parent 5e1faa90f5
commit e130c83cb6
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}