1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| void init_piece(char piece[Ll][Ll])
{
int i,j;
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
piece[i][j]=sp;
printf("\n");
}
}
void afficher_piece(char piece[Ll][Ll])
{
int i,j;
for(i=0;i<7;i++)
{for(j=0;j<7;j++)
if (piece[i][j]==x)
printf("%c",piece[i][j]);
else if (piece[i][j]==a || piece[i][j]==c)
printf(" ");
printf("\n");
}
}
void piece_11(char tab11[Ll][Ll])
{
tab11[1][1]=x;
tab11[0][0]=a;
tab11[0][2]=a;
tab11[2][2]=a;
tab11[2][0]=a;
tab11[0][1]=c;
tab11[1][2]=c;
tab11[2][1]=c;
tab11[1][0]=c;
} |
Partager