From 8b72e391c7185e3da0dfbf0ab60068ac37e4d5cc Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 22 Apr 2025 09:00:15 +0200 Subject: Removed old scripts and updated public API --- cpp/examples/move_convert.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 cpp/examples/move_convert.cpp (limited to 'cpp/examples/move_convert.cpp') diff --git a/cpp/examples/move_convert.cpp b/cpp/examples/move_convert.cpp deleted file mode 100644 index 11398df..0000000 --- a/cpp/examples/move_convert.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/* A simple example showing how to move a cube and print it in H48 format. */ - -#include "../nissy.h" -#include - -int main() { - nissy::cube c; - if (!c.move("R' U' F").ok()) { - std::cout << "Error moving the cube!" << std::endl; - return 1; - } - - auto string_or_error = c.to_string("H48"); - if (std::holds_alternative(string_or_error)) { - std::cout << "Error converting cube!" << std::endl; - return 1; - } - - auto str = std::get(string_or_error); - std::cout << "Cube in H48 format after R' U' F:" << std::endl - << str << std::endl; - - return 0; -} -- cgit v1.3