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.

18 lines
344 B

  1. #ifndef TICTACTOE_H
  2. #define TICTACTOE_H
  3. #include <stdbool.h>
  4. enum Winner{
  5. PLAYER,
  6. COMPUTER,
  7. NOWINNERYET,
  8. DRAW
  9. };
  10. void printPrompt();
  11. void printField(char field[3][3]);
  12. void initField(char field[3][3]);
  13. void getPlayerInput(char field[3][3]);
  14. bool validatePlayerInput(int row, int col);
  15. int wasGameWon(char field[3][3]);
  16. #endif