Slt, j'croi que tu as trouver la meilleure solution ! merci à toi !
Alors pour voir sa donne sa :
Alors pour voir sa donne sa :
Code PHP :
<?php
elseif (
// en partant du haut
// Ligne -1 horizontal
$x==-1 AND ($y>=-1 AND $y<=20) or
// Ligne 0 horizontal
$x== 0 AND ($y>=-1 AND $y<=20 AND $y!=12 AND $y!=13 AND $y!=14) or
// Ligne 1 horizontal
$x== 1 AND ($y>=-1 AND $y<=20 AND $y!=13 AND $y!=14) or
// Ligne 2 horizontal
$x== 2 AND ($y>=-1 AND $y<=9) or $x== 2 AND ($y>=15 AND $y<=20) or
// Ligne 3 horizontal
$x== 3 AND ($y>=-1 AND $y<=4) or $x== 3 AND ($y>=15 AND $y<=20) or
// Ligne 4 horizontal
$x== 4 AND ($y>=-1 AND $y<=3) or $x== 4 AND ($y>=16 AND $y<=20) or
// Ligne 5 horizontal
$x== 5 AND ($y>=-1 AND $y<=2) or $x== 5 AND ($y>=17 AND $y<=20) or
// Ligne 6 horizontal
$x== 6 AND ($y>=-1 AND $y<=1) or $x== 6 AND ($y>=18 AND $y<=20) or
// Ligne 7 horizontal
$x== 7 AND ($y>=-1 AND $y<=1) or $x== 7 AND ($y>=19 AND $y<=20) or
// Ligne 8 horizontal
$x== 8 AND ($y>=-1 AND $y<=0) or $x== 8 AND ($y>=18 AND $y<=20) or
// Ligne 9 horizontal
$x== 9 AND ($y>=-1 AND $y<=0) or $x== 9 AND ($y>=18 AND $y<=20) or
// Ligne 10 horizontal
$x== 10 AND ($y>=-1 AND $y<=0) or $x== 10 AND ($y>=18 AND $y<=20) or
// Ligne 11 horizontal
$x== 11 AND ($y>=-1 AND $y<=0) or $x== 11 AND ($y>=18 AND $y<=20) or
// Ligne 12 horizontal
$x== 12 AND ($y>=-1 AND $y<=0) or $x== 12 AND ($y>=18 AND $y<=20) or
// Ligne 13 horizontal
$x== 13 AND ($y>=-1 AND $y<=0) or $x== 13 AND ($y>=18 AND $y<=20) or
// Ligne 14 horizontal
$x== 14 AND ($y>=-1 AND $y<=0) or $x== 14 AND ($y>=17 AND $y<=20) or
// Ligne 15 horizontal
$x== 15 AND ($y>=-1 AND $y<=1) or $x== 15 AND ($y>=16 AND $y<=20) or
// Ligne 16 horizontal
$x== 16 AND ($y>=-1 AND $y<=4) or $x== 16 AND ($y>=16 AND $y<=20) or
// Ligne 17 horizontal
$x== 17 AND ($y>=-1 AND $y<=4) or $x== 17 AND ($y>=16 AND $y<=20) or
// Ligne 18 horizontal
$x== 18 AND ($y>=-1 AND $y<=6) or $x== 18 AND ($y>=13 AND $y<=20) or
// Ligne 19 horizontal
$x== 19 AND ($y>=-1 AND $y<=20 AND $y!=7) or
// Ligne 20 horizontal
$x==20 AND ($y>=-1 AND $y<=20)
)
Oui, beaucoup mieu ! :wowowow: