You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. //Importiere wichtige Bibliotheken
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. //Definiere Feldgröße
  5. #define ROWS 6
  6. #define COLS 7
  7. // Definiere Farben
  8. #define RESET_COLOR "\033[0m"
  9. #define BLACK "\033[0;30m"
  10. #define RED "\033[0;31m"
  11. #define GREEN "\033[0;32m"
  12. #define YELLOW "\033[0;33m"
  13. #define BLUE "\033[0;34m"
  14. #define MAGENTA "\033[0;35m"
  15. #define CYAN "\033[0;36m"
  16. #define WHITE "\033[0;37m"
  17. //Funktionsprototyp für initializeBoard
  18. void initializeBoard(char board[ROWS][COLS]);
  19. //Funktionsprototyp für printBoard
  20. void printBoard(char board[ROWS][COLS]);
  21. // Funktionsprototyp für clearScreen
  22. void clearScreen();
  23. //Funktionsprototyp für isColumnFull
  24. int isColumnFull(char board[ROWS][COLS], int col);
  25. //Funktionsprototyp für dropPiece
  26. int dropPiece(char board[ROWS][COLS], int col, char player);
  27. //Funktionsprototyp für checkWin
  28. int checkWin(char board[ROWS][COLS], char player);
  29. // Funktionsprototyp für checkHorizontal
  30. int checkHorizontal(char board[ROWS][COLS], char player);
  31. // Funktionsprototyp für checkVertical
  32. int checkVertical(char board[ROWS][COLS], char player);