void print_play_list( play_list* pl ) {
	int c;
	for( c = 0; c < pl->play_count; c++ ) {
		printf( "Play: %d\n", c );
		print_play( pl->plays[c] );
	}
}
Beispiel #2
0
void print_movement (struct move *move, int full) {
    char play[2][2] = {{move->from[0], move->from[1]},
                        {move->to[0], move->to[1]}};
    
    cord2pos(play[0]);
    cord2pos(play[1]);
    
    print_play(play);
    
    if (full) {
        printf("iscastle = %i.\n", move->iscastle);
        printf("lostcastle = %i.\n", move->lostcastle);
        printf("passant = %i.\n", move->passant);
        printf("passantJ = %i %i.\n", move->passantJ[0], move->passantJ[1]);
        if (!move->promoteto) printf("promoteto = 0\n");
        else printf("promoteto = %c.\n", move->promoteto);
        printf("casualty = %c.\n", move->casualty);
    }
    
    
    
}