Skip to content

Instantly share code, notes, and snippets.

View Gabi363's full-sized avatar

Gabriela Żmuda Gabi363

  • AGH Univeristy of Science and Technology
  • Kraków
View GitHub Profile

Function in chess that prints out actual board:

void wypisz(){
    char fig[]="khwgspKHWGSP ";     //male gracza, wielkie komputera
    printf("  0   1   2   3   4   5   6   7  \n");
    printf("---------------------------------\n");
    for(int y=0; y < 8; y++) {
        for(int x=0; x < 8; x++)
 printf(" %c |", fig[plansza[x][y]]);