|
|
@ -310,20 +310,20 @@ int main(int argc, char** argv) { |
|
|
|
puts("(GUI) Opening window"); |
|
|
|
struct gui_resource_t gui_res = display_start(gui_res); |
|
|
|
|
|
|
|
/* appel de start_match */ |
|
|
|
for( i=0 ; i < nb_player ; i++ ) |
|
|
|
|
|
|
|
for( i=0 ; i < nb_player ; i++ ) { |
|
|
|
/* on associe une branche à chaque joueur */ |
|
|
|
player_state[i].branch = star_branch(nb_player, i); |
|
|
|
/* appel de start_match pour les joueurs présents */ |
|
|
|
if( player_state[i].ia_lib_p ) |
|
|
|
ia_call_function(player_state[i], ia_start_match, NULL, nb_player, i+1); |
|
|
|
ia_call_function(player_state[i], ia_start_match, NULL, nb_player, player_state[i].branch); |
|
|
|
} |
|
|
|
|
|
|
|
while( nb_game-- > 0 ) { |
|
|
|
#ifdef debug |
|
|
|
fprintf(stderr,"%d %s left\n", nb_game, nb_game>1?"games":"game"); |
|
|
|
#endif |
|
|
|
|
|
|
|
/* on associe une branche à chaque joueur */ |
|
|
|
for( i=0 ; i < nb_player ; i++ ) |
|
|
|
player_state[i].branch = star_branch(nb_player, i); |
|
|
|
|
|
|
|
/* appel de start_game */ |
|
|
|
for( i=0 ; i < nb_player ; i++ ) |
|
|
|
if( player_state[i].ia_lib_p ) |
|
|
|