made game less shit

This commit is contained in:
'mr software' 2022-01-05 19:30:41 -08:00
parent 347fbf7d30
commit db9667b1d4
2 changed files with 13 additions and 1 deletions

12
README.md Normal file
View File

@ -0,0 +1,12 @@
the controls are
q to quit
e to enter a word
left/right keys to pick a letter
space to put the letter
down key to delete a letter

2
main.c
View File

@ -162,7 +162,7 @@ int main(int argc, char** argv) {
int8_t* res = worle(word, guesstab[guesses - 1]); int8_t* res = worle(word, guesstab[guesses - 1]);
if(!res) { if(!res) {
printf("\033[%u;%uH", guesses + 2, 1); printf("\033[%u;%uH", guesses + 2, 1);
printf("wrong number of characters?\n"); printf("wrong number of characters? (should be %u)\n", l);
printf("\033[%u;%uH", guesses + 1, 1); printf("\033[%u;%uH", guesses + 1, 1);
for(uint i = 0; i < strlen(guesstab[guesses - 1]); i++) putchar(' '); for(uint i = 0; i < strlen(guesstab[guesses - 1]); i++) putchar(' ');
printf("\033[%u;%uH", guesses, 1); printf("\033[%u;%uH", guesses, 1);