case ship outside map
This commit is contained in:
parent
deb74b073e
commit
dd93ab07b8
|
@ -96,6 +96,7 @@ switch ($_POST['act']){
|
||||||
}else{
|
}else{
|
||||||
save_battle('Battleship',$bot1['name'],$bot2['name'],1);
|
save_battle('Battleship',$bot1['name'],$bot2['name'],1);
|
||||||
}
|
}
|
||||||
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
//init grid
|
//init grid
|
||||||
|
@ -125,7 +126,8 @@ switch ($_POST['act']){
|
||||||
save_battle('Battleship',$bot1['name'],$bot2['name'],2);
|
save_battle('Battleship',$bot1['name'],$bot2['name'],2);
|
||||||
}else{
|
}else{
|
||||||
save_battle('Battleship',$bot1['name'],$bot2['name'],1);
|
save_battle('Battleship',$bot1['name'],$bot2['name'],1);
|
||||||
}
|
}
|
||||||
|
die;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach($nbBoatsIwant as $nb){
|
foreach($nbBoatsIwant as $nb){
|
||||||
|
@ -135,7 +137,8 @@ switch ($_POST['act']){
|
||||||
save_battle('Battleship',$bot1['name'],$bot2['name'],2);
|
save_battle('Battleship',$bot1['name'],$bot2['name'],2);
|
||||||
}else{
|
}else{
|
||||||
save_battle('Battleship',$bot1['name'],$bot2['name'],1);
|
save_battle('Battleship',$bot1['name'],$bot2['name'],1);
|
||||||
}
|
}
|
||||||
|
die;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user