diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2022-04-26 01:40:02 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2022-04-26 01:40:02 +0200 |
commit | abadc0e24d7fd1ade52e3ced31892cf5037b9cf6 (patch) | |
tree | cab5d5cc672feeb83cb16dc3fe2610b72c0db454 /src/main.cpp | |
parent | 5001e89f399dbd74dab054743f95c752b6f04bc6 (diff) |
Small changes
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 16 |
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) |