for exemple the user can enter Pe2 e4.
void controlGame()
{
char move[6];
printf("enter move : ");
getchar();
scanf("%c", &move[6]);
if(move[1] >='a' && move[1] <='h')
if(move[2] >= 1 && move[2] <= 8)
if(move[4] >='a' && move[4] <='h')
if(move[5] >=1 && move[5] <=8)
matrixGame[4][5]=matrixGame[1][2];
showGame();
}

New Topic/Question
Reply



MultiQuote




|