saturn-examples/wordle/wordle.hpp
Zack Buhman 8e243a435e wordle: initial
Almost nothing is implemented.
2023-05-09 14:54:47 -07:00

32 lines
396 B
C++

#include <stdint.h>
namespace wordle {
constexpr uint32_t word_length = 5;
constexpr uint32_t guesses = 6;
enum class clue {
correct,
position,
absent,
none
};
struct row {
uint8_t letters[word_length];
};
struct edit {
uint32_t row;
uint32_t index;
};
struct screen {
struct edit edit;
struct row rows[guesses];
uint8_t word[word_length];
uint32_t all_letters;
};
}