From 2f11b6fa0e1a173fbae39b1aaaef3460cbd525c0 Mon Sep 17 00:00:00 2001 From: cdemeyer-teachx Date: Tue, 26 Aug 2025 13:02:15 +0900 Subject: [PATCH] prompt description --- CMakeLists.txt | 2 +- prompts/6-console-renderer | 1 + tests/CMakeLists.txt | 7 +------ 3 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 prompts/6-console-renderer diff --git a/CMakeLists.txt b/CMakeLists.txt index d65c07a..8d763c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) enable_testing() # Options -option(ND_WFC_BUILD_TESTS "Build tests" OFF) # Temporarily disabled due to gtest hash issue +option(ND_WFC_BUILD_TESTS "Build tests" ON) option(ND_WFC_BUILD_EXAMPLES "Build examples" ON) option(ND_WFC_USE_SYSTEM_LIBS "Use system libraries instead of bundled" OFF) diff --git a/prompts/6-console-renderer b/prompts/6-console-renderer new file mode 100644 index 0000000..38b212e --- /dev/null +++ b/prompts/6-console-renderer @@ -0,0 +1 @@ +I want you to create code files in the demos/ directory that helps with console rendering. I want to be able to render the sudoku and nonogram demos that I have right now, but also have them solved in real time without adding new lines to the console. Test out your solution by rendering a sudoku puzzle. Give a clear API to render the state of the existing Sudoku class. Make sure you first allocate enough space in the console before rendering anything. So first add some empty lines before the rendering. \ No newline at end of file diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 354e615..bd22ae3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,17 +3,12 @@ include(FetchContent) # Fetch Google Test FetchContent_Declare( googletest - URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip - URL_HASH SHA256=8ad598c73ad796e0d8280b082cebd82a630d73e73cd3c70057938a6501bba5d7 + URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip ) FetchContent_MakeAvailable(googletest) set(TEST_SOURCES test_main.cpp - test_wfc.cpp - test_grid.cpp - test_wave.cpp - test_propagator.cpp ) # Create test executable