Combinatorial Game Theory/Game of NIM/gameNIM.c
// A C function to output the current game state. 
A C function to output the current game state.
A C function to output the current game state .
void showPiles (int piles[], int n) 
{ 
    int i; 
    printf ("Current Game Status -> "); 
    for (i=0; i<n; i++) 
        printf ("%d ", piles[i]); 
    printf("\n"); 
    return; 
}
void showPiles ( int piles [ ] , int n ) { int i ; printf ( " " ) ; for ( i = 0 ; i < n ; i ++ ) printf ( " " , piles [ i ] ) ; printf ( " \n " ) ; return ; }
A C function to output the current game state.
A C function to output the current game state .