php
This commit is contained in:
parent
107c424c0b
commit
8c1a5bf8ee
|
@ -132,7 +132,7 @@ switch ($_POST['act']){
|
||||||
//tester si 4 pions allignés diagonale vers la gauche
|
//tester si 4 pions allignés diagonale vers la gauche
|
||||||
if((!$wins) && ($i > 2) && ($j < 3)){
|
if((!$wins) && ($i > 2) && ($j < 3)){
|
||||||
$wins=true;
|
$wins=true;
|
||||||
for($x = $i-1, $y = $j+1; $x > $i - 4 ; $x++, $y++){
|
for($x = $i-1, $y = $j+1; $x > $i - 3 ; $x++, $y++){
|
||||||
if($_SESSION['map'][$y][$x] <> $you){
|
if($_SESSION['map'][$y][$x] <> $you){
|
||||||
$wins=false;
|
$wins=false;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user