fix
This commit is contained in:
parent
815f99c0cc
commit
5093978301
|
|
@ -282,7 +282,7 @@ switch ($_POST['act']){
|
||||||
$result="hit and sunk";
|
$result="hit and sunk";
|
||||||
//remove the ship
|
//remove the ship
|
||||||
unset($_SESSION['ships'][$opponent][$shipIndex]);
|
unset($_SESSION['ships'][$opponent][$shipIndex]);
|
||||||
var_dump($_SESSION['ships'][$opponent]);
|
//var_dump($_SESSION['ships'][$opponent]);
|
||||||
//win the game?
|
//win the game?
|
||||||
if(count($_SESSION['ships'][$opponent]) == 0){
|
if(count($_SESSION['ships'][$opponent]) == 0){
|
||||||
$result="hit sunk and win";
|
$result="hit sunk and win";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user