|
|
@ -291,12 +291,12 @@ int main(int argc, char **argv) { |
|
|
|
#endif |
|
|
|
game_state_copy = game_state; |
|
|
|
previous_movement.start_pos=-1; previous_movement.end_pos=-1; |
|
|
|
start_pos_first_move = -1; |
|
|
|
first_move = 1; |
|
|
|
do { /* on demande la suite de coup */ |
|
|
|
/* si on a une stratégie */ |
|
|
|
if( player_state[i].ia_lib_p ) { |
|
|
|
movement.start_pos=-1; movement.end_pos=-1; |
|
|
|
start_pos_first_move = -1; |
|
|
|
game_state_ia_copy = game_state_copy; |
|
|
|
ia_call_function(player_state[i], ia_next_move, &next_move, &game_state_ia_copy, first_move, &movement); |
|
|
|
if(!quit) { |
|
|
@ -348,7 +348,6 @@ int main(int argc, char **argv) { |
|
|
|
/* on a un joueur réel, on demande un coup tant qu'il n'est pas valide */ |
|
|
|
do { |
|
|
|
movement.start_pos=-1; movement.end_pos=-1; |
|
|
|
start_pos_first_move = -1; |
|
|
|
game_state_ia_copy = game_state_copy; |
|
|
|
quit += display_usermove_pawn(&gui_res, &game_state_ia_copy, player_state[i].branch, player_state[i].name, &movement, &next_move); |
|
|
|
if(first_move) |
|
|
|