Browse Source

define function

main^2
fdai7726 11 months ago
committed by Peter Wiebe
parent
commit
def2d89ebe
  1. 14
      src/main/c/VierGewinnt.h

14
src/main/c/VierGewinnt.h

@ -3,3 +3,17 @@
#define ROWS 6 #define ROWS 6
#define COLS 7 #define COLS 7
void initializeBoard(char board[ROWS][COLS]);
void printBoard(char board[ROWS][COLS]);
int isColumnFull(char board[ROWS][COLS], int col);
int dropPiece(char board[ROWS][COLS], int col, char player);
int checkWin(char board[ROWS][COLS], char player);
int checkHorizontal(char board[ROWS][COLS], char player);
int checkVertical(char board[ROWS][COLS], char player);
int checkDiagonalLR(char board[ROWS][COLS], char player);
int checkDiagonalRL(char board[ROWS][COLS], char player);
void showMessage(const char* messageColor, const char* message);
void showInvalidInputMessage();
void showColumnFullMessage();
void showWinMessage(int player);
Loading…
Cancel
Save