made game less shit
This commit is contained in:
parent
347fbf7d30
commit
db9667b1d4
|
@ -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
2
main.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue