Browse Source

bugfix position ships

try-game-class
Michael Boeyens 3 years ago
parent
commit
e3c89ca772
2 changed files with 1 additions and 3 deletions
  1. 1
    1
      ships.inc
  2. 0
    2
      todo.txt

+ 1
- 1
ships.inc View File

@@ -28,7 +28,7 @@ class ship
//bepaald positie van het schip in het dok
protected function randomPos($lengte)
{
$this->midden = rand(floor($lengte / 2), $this->doklengte - floor($lengte / 2));
$this->midden = rand(floor($lengte / 2), $this->doklengte - 1 - floor($lengte / 2));
}

// variable subPos() geeft de lengte aan de duikboot mee en legt eigenschappen duikboot vast.

+ 0
- 2
todo.txt View File

@@ -1,2 +0,0 @@
-bij doklengte 10: kiest soms dok nr 10, zelfs als ze niet zichtbaar is
-save result after win

Loading…
Cancel
Save