Browse Source

non inversion de next_move quand le joueur n'est pas une stratégie

master
Bastien 8 years ago
committed by Squiz
parent
commit
b8ce8c539c
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      main.c

+ 1
- 3
main.c View File

@ -299,11 +299,9 @@ int main(int argc, char **argv) {
/* si on a une stratégie */
if(player_state[i].ia_lib_p)
ia_call_function(player_state[i], ia_next_move, &next_move, &game_state_ia_copy, first_move, &movement);
else {
else
/* on a un joueur réel */
quit += display_usermove_pawn(&gui_res, &game_state_ia_copy, player_state[i].branch, &movement, &next_move);
next_move = !next_move;
}
printf("(GUI) Moving pawn %d → hole %d\n", movement.start_pos, movement.end_pos);
if(first_move)
start_pos_first_move = movement.start_pos; /* on retient le point de départ pour éviter les coups qui reviendraient là où on est parti */


Loading…
Cancel
Save