Skip to content

Commit

Permalink
Remove old printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorg16 committed Aug 1, 2022
1 parent 52f3a94 commit c7077c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion board.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ void Board::draw_board()
unsigned char numMissingKeys = max_key_rect_len - key_rect_len[row];
r.left = spacerWidth + (spacerWidth + buttonWidth) * col + ((spacerWidth + buttonWidth) / 2) * numMissingKeys;
r.right = r.left + buttonWidth;
//FillCRect(&r, lightGreyPixPat);

key_rects[row][col] = r;
char l = keyboard[row][col];
Expand Down
9 changes: 2 additions & 7 deletions engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ BOOL Engine::gameDone()

void Engine::alphabetAdd(char letter, letterScore score)
{
printf("set letter %c to %d\n", letter, score);
if (score > alphabet[letter - 'A'])
{
alphabet[letter - 'A'] = score;
Expand All @@ -183,7 +182,6 @@ BOOL Engine::checkWord(char* word)

// Then, check the two auxilliary lists
int cmpRes = strncmp(word, splitWord, WORD_LENGTH);
printf("Comparing word %s to splitword %s results in: %d\n", word, splitWord, cmpRes);

if (cmpRes < 0)
{
Expand Down Expand Up @@ -214,16 +212,13 @@ BOOL Engine::binSearch(int start, int end, char* wordList, char* word)
for (int i = start; i < end; i++)
{
int res = memcmp(word, wordList + (i * (WORD_LENGTH + 1)), WORD_LENGTH);

if(res == 0)
{
found = TRUE;
break;
}
}
if (!found)
{
printf("Could not find word %s\n", word);
}
}
else
{
Expand Down Expand Up @@ -259,4 +254,4 @@ void Engine::alphabetPrint()
printf("\tLetter %c: %d\n", 'A'+i, alphabet[i]);
}
return;
}
}

0 comments on commit c7077c3

Please sign in to comment.