FEAT: add vector, fix standard input

This commit is contained in:
LucasCodeur
2026-03-29 15:42:32 +02:00
parent 4150e95378
commit 3e599160d8
57 changed files with 961 additions and 56 deletions
+11 -7
View File
@@ -6,20 +6,24 @@
/* By: lud-adam <lud-adam@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/28 13:27:29 by lud-adam #+# #+# */
/* Updated: 2026/03/28 21:41:55 by dgaillet ### ########lyon.fr */
/* Updated: 2026/03/29 14:58:00 by lud-adam ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ALCU_H
# define ALCU_H
# include <stddef.h>
#include "vector.h"
char *read_file(int fd);
int check_input(int fd);
void print_board(int *game_state, size_t nb_line);
int *fill_array(int fd, int size);
#include <stddef.h>
#include <stdbool.h>
char *read_file(int fd);
bool check_input(t_vector* lines);
void print_board(int *game_state, size_t nb_line);
bool fill_vector(t_vector* lines, int fd);
int ai(int *gamestate, int nb_line);
void game(int *lines, int size);
void game(int *lines, int size);
int* fill_array(t_vector* lines, int* size);
#endif