Professional Documents
Culture Documents
h>
#include "TicTacToe.h"
#define _CRT_SECURE_NO_WARNINGS
void main()
{
char inp[2];
setPlayerSymbol(inp[0], inp[1]);
gameState = getGameState(SYMBOL_P1);
if (gameState != GAME_RUNNING)
{
break; //beende das Spiel
}
showBoard();
if (gameState == GAME_P1_WON)
printf("Player 1 WON!!");
if (gameState == GAME_P2_WON)
printf("Player 2 WON!!");
if (gameState == GAME_DRAW)
printf("Finished. It´s a draw!!");
scanf("%s", inp);
/*setBoardPlay(row, col);
*/
}