place ships function
This commit is contained in:
parent
f16807d8a8
commit
b717a85e53
|
@ -17,8 +17,9 @@ function is_it_possible_to_place_ships_on_grid($gridWidth,$gridHeight,$nbShipsSi
|
||||||
if( (!isset($longestShip))
|
if( (!isset($longestShip))
|
||||||
OR(($longestShip > $gridWidth) && ($longestShip > $gridHeight))
|
OR(($longestShip > $gridWidth) && ($longestShip > $gridHeight))
|
||||||
){
|
){
|
||||||
return false:
|
return false;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
function get_Post_Params($ccbotsCount){
|
function get_Post_Params($ccbotsCount){
|
||||||
$keysBots=array('bot1','bot2');
|
$keysBots=array('bot1','bot2');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user