int ft_check_doublons_ligne_colonne_sortie(int **tab_sortie, int etage, int x, int y)
{
    int i;

    i = 0;
    while (i < 4) // controle ligne
        {
            if (tab_sortie[y][i] == etage)
            {
                return (0);
            }
            i++;
        }

    i = 0;
    while (i < 4) // colonne
        {
            if (tab_sortie[i][x] == etage)
            {
                return (0);
            }
            i++;
        }
    return (1);   
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: