int ft_move_up(t_game *g) { int score; int i; int j; score = 0; g->move = 0; i = 0; while (i < g->size_g - 1) { j = 0; while (j < g->size_g) { if (g->grid[i][j]) score += ft_check_up(g, i, j); else ft_up_number(g, i, &j); j++; } i++; } if (g->move) ft_add_random(g); return (score); }
int ft_check_t_piece(t_tetro *tetro, t_piece *pieces) { return (ft_check_down(tetro, pieces) || ft_check_up(tetro, pieces) \ || ft_check_vertical_droit(tetro, pieces) \ || ft_check_vertical_gauche(tetro, pieces)); }