141char *
read_file(
char *filepath,
int size,
int start);
struct corewar_s corewar_t
The corewar structure.
int analyse_champions(void)
Analyse each champion files and complete the champion structure.
Definition champion.c:54
int get_prog_size(char *header)
Get the program size.
Definition header.c:37
int parse_args(int argc, char **argv)
Parse the arguments.
Definition parsing.c:104
corewar_t * get_corewar(void)
Get the corewar object.
Definition corewar.c:18
int champion_number_exist(int number)
Check if a champion number exist.
Definition champion.c:39
struct champion_s champion_t
The champion structure.
struct cell_s cell_t
The cell structure.
int is_valid_magic(char *header)
Check if the magic number is valid.
Definition header.c:19
void build_arena(void)
Build the arena.
Definition arena.c:40
void free_corewar(void)
Free the corewar structure.
Definition corewar.c:29
int get_next_champion_number(void)
Get the next champion number disponible.
Definition champion.c:18
int corewar(void)
The virtual machine of the corewar.
Definition corewar.c:46
char * read_file(char *filepath, int size, int start)
Read a file and return the content.
Definition read_file.c:21
void display_arena(void)
Display the arena.
Definition arena.c:68
The header file of the libmymemory.
The header file of the op.
The cell structure.
Definition corewar.h:28
The champion structure.
Definition corewar.h:37
The corewar structure.
Definition corewar.h:54