1
0

refactor into cmake project, tweak api

This commit is contained in:
2020-01-07 21:41:31 -05:00
parent 083673ef04
commit 1de9b08ffa
13 changed files with 638 additions and 361 deletions

17
example/path.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "tc/solver.h"
#include "tc/groups.h"
#include <ctime>
#include <iostream>
int main() {
auto cube = tc::group::B(3);
auto vars = tc::solve(cube, {});
for (int target = 1; target < vars.len; target++) {
auto &action = vars.path[target];
std::cout << action.coset << " " << action.gen << " " << target << std::endl;
}
return 0;
}