Skip to content

Commit

Permalink
Fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
commandblockguy committed Mar 30, 2022
1 parent 387c1f7 commit 04e3c66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ enum tile_type get_tile_type(const char guesses[][WORD_LENGTH], uint8_t guess, u
for(uint8_t i = 0; i < WORD_LENGTH; i++) {
if(c == word[i]) {
count_answer++;
}
if(guesses[guess][i] == word[i]) {
count_correct++;
if(guesses[guess][i] == word[i]) {
count_correct++;
}
}
}
// Count how many tiles with this letter have already been shown as present or correct
Expand Down

0 comments on commit 04e3c66

Please sign in to comment.