|
@ -43,7 +43,18 @@ void test_checkWin_Horizontal_X(void) { |
|
|
TEST_ASSERT_EQUAL_INT(1, checkWin(board, 'X')); // Horizontale Gewinnsituation für 'X' |
|
|
TEST_ASSERT_EQUAL_INT(1, checkWin(board, 'X')); // Horizontale Gewinnsituation für 'X' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_checkWin_Horizontal_O(void) { |
|
|
|
|
|
char board[6][7] = { |
|
|
|
|
|
{'X', 'X', ' ', ' ', ' ', ' ', ' '}, |
|
|
|
|
|
{'O', 'O', 'O', 'O', ' ', ' ', ' '}, |
|
|
|
|
|
{' ', ' ', ' ', ' ', ' ', ' ', ' '}, |
|
|
|
|
|
{' ', 'X', 'X', ' ', 'X', ' ', ' '}, |
|
|
|
|
|
{' ', ' ', ' ', ' ', ' ', ' ', ' '}, |
|
|
|
|
|
{' ', ' ', ' ', ' ', ' ', ' ', ' '} |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(1, checkWin(board, 'O')); // Horizontale Gewinnsituation für 'X' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|