diff --git a/example/path.cpp b/example/path.cpp index 53029c0..f18f6a2 100644 --- a/example/path.cpp +++ b/example/path.cpp @@ -1,16 +1,15 @@ -#include "tc/solver.h" -#include "tc/groups.h" +#include "tc/groups.hpp" #include #include int main() { auto cube = tc::group::B(3); - auto vars = tc::solve(cube, {}); + auto vars = cube.solve(); - for (int target = 1; target < vars.len; target++) { + for (size_t target = 1; target < vars.size(); target++) { auto &action = vars.path[target]; - std::cout << action.coset << " " << action.gen << " " << target << std::endl; + std::cout << action.coset << " * " << action.gen << " = " << target << std::endl; } return 0;