move.cpp (364B)
1 /* A simple example showing how to move a cube and print it in H48 format. */ 2 3 #include "../nissy.h" 4 #include <iostream> 5 6 int main() { 7 nissy::cube c; 8 if (!c.move("R' U' F").ok()) { 9 std::cout << "Error moving the cube!" << std::endl; 10 return 1; 11 } 12 13 auto str = c.to_string(); 14 std::cout << "Cube after R' U' F:" << std::endl << str << std::endl; 15 16 return 0; 17 }