saturn-examples/wordle/wordle.hpp
Zack Buhman cfad16c514 wordle: basic drawing
This draws the screen and "keyboard".

I am not certain if I like the keyboard concept. Letter groupings would be more
useful.
2023-05-10 05:48:49 -07:00

34 lines
455 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;
};
void init_screen(struct screen& s, const uint8_t * word);
}