%Ce programme permet de detecter la victoire d'une des entitées

function var = detection_victoire(L)
    var = "r";
    vl = detection_ligne(L);
    vc = detection_colonnes(L);
    vd = detection_diag(L);
    if vl == "j" || vc == "j" || vd == "j"
        var = "j";
    end
    if vl == "o" || vc == "o" || vd == "o"
        var = "o";
    end
end