wordlexpr -- compile-time Wordle
summary
Implements a playable Wordle that runs entirely at C++ compile time by encoding game state in types, taking a seed and each guess as preprocessor defines, and advancing by recompiling. Uses non-type template parameters and a mutable compile-time string type to force the compiler to print game output via an instantiation error. Keeps state as a POD struct encoded/decoded to strings and needs a compile-time RNG; works on Clang but GCC currently prints unusable hex.
AI-written summary · about
related talks
04mHow to play Wordle in Postgres
41mC++11 Metaprogramming Applied to Software Obfuscation
01h 09mSandbox Games: Using WebAssembly and C++ to make a simple game
54mSandbox Games: Using WebAssembly and C++ to Make a Simple Game
14mLexy: A DSL Library For C++ Parsing
05mEsolangs
03mPoetry
46mCompiling Your Story: Using Techniques from Compiler Design to Check Your Narrative
