aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3144b0b..0822a4c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -14,25 +14,23 @@ int main() {
while (getline(&buf, &sz, stdin) != -1) {
init_cube(&cube);
if (sz == 0) break;
- printf("> %s\n", buf);
rotate_from_str(&cube, buf);
dump_cube_grid(&cube);
timer = clock();
auto result = solver.solve(cube);
timer = clock() - timer;
- std::cerr << "Time: " << (float)timer/CLOCKS_PER_SEC << "\n";
-
+ std::cerr << "Time: " << (float)timer/CLOCKS_PER_SEC << "s\n";
for (auto rot: result) {
- std::cerr << rot << " ";
+ std::cerr << rot_to_str(rot) << " ";
}
- std::cerr << "\n";
+ std::cerr << "len: " << result.size() << "\n";
- for (auto rot: result) {
- perform_rotation(&cube, rot);
- }
- dump_cube_grid(&cube);
+ // for (auto rot: result) {
+ // perform_rotation(&cube, rot);
+ // }
+ // dump_cube_grid(&cube);
}
if (buf)