Browse Source

Merge branch 'master' of ssh://ssh.confais.org/git/dames_chinoises

master
Nikos 8 years ago
parent
commit
afbf7348e0
2 changed files with 2 additions and 4 deletions
  1. +1
    -1
      Makefile
  2. +1
    -3
      main.c

+ 1
- 1
Makefile View File

@ -24,7 +24,7 @@ main.o : main.c api.h
stack.o : stack.c
gcc -c stack.c $(CFLAGS) $(WARNINGS)
arbitre.o : arbitre.c
arbitre.o : arbitre.c api.h
gcc -c arbitre.c $(CFLAGS) $(WARNINGS)
dummy : dummy.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