Browse Source

Main et arbitre : correction de l'arbre des include (les ifdef c'est mal)

master
Nikos 8 years ago
parent
commit
82e6489de8
3 changed files with 1 additions and 9 deletions
  1. +0
    -1
      arbitre.c
  2. +0
    -5
      arbitre.h
  3. +1
    -3
      main.c

+ 0
- 1
arbitre.c View File

@ -1,7 +1,6 @@
#include <stdlib.h>
#include <stdio.h>
#include "arbitre.h"
#include "api.h"
#define STACK_TYPE size_t
#include "stack.h"


+ 0
- 5
arbitre.h View File

@ -6,9 +6,6 @@
#define allow_to_returning_to_the_starting_point_in_a_round 1
#define allow_to_block_opposite_player 0
#ifndef arbitre_h
#define arbitre_h
#include "api.h"
enum bool {false, true};
@ -28,5 +25,3 @@ enum hole_t star_branch(const unsigned int nb_player, const size_t index);
enum validation_movement_t valid_move(const int start_pos_first_move, const struct move_t move, const struct move_t previous_move, const struct player_t player, const struct game_state_t game, const size_t start_position[6][10], const enum bool last_move);
/* vérifie si le joueur a gagné */
enum bool winner(const struct player_t player, const size_t start_position[6][10], const struct game_state_t game);
#endif

+ 1
- 3
main.c View File

@ -4,12 +4,10 @@
#include <stdarg.h>
#include <dlfcn.h>
#include <time.h>
#include "api.h"
#include <SDL/SDL.h>
#include "gui.h"
#include "arbitre.h"
#include "gui.h"
#define score_filename "scores"


Loading…
Cancel
Save