Joris PZ
12/17/2019, 3:48 PMmarstran
12/17/2019, 3:54 PMKroppeb
12/17/2019, 4:57 PMmarstran
12/17/2019, 5:13 PMKroppeb
12/17/2019, 5:24 PMwhile(True){
when{
canMoveForwards() -> moveForwards()
canMoveLeft() -> turnLeft()
canMoveRight() -> turnRight()
else -> break //finished
}
}
marstran
12/17/2019, 5:27 PMKroppeb
12/17/2019, 5:28 PMmarstran
12/17/2019, 5:28 PMKroppeb
12/17/2019, 5:28 PMmarstran
12/17/2019, 5:28 PMKroppeb
12/17/2019, 5:28 PMmarstran
12/17/2019, 5:29 PMmarstran
12/17/2019, 5:34 PM...........
.#########.
.#.......#.
.#..#....#.
.#########.
....#......
....#......
....###^...
Kroppeb
12/17/2019, 5:34 PMKroppeb
12/17/2019, 5:34 PMmarstran
12/17/2019, 5:35 PMKroppeb
12/17/2019, 5:35 PMKroppeb
12/17/2019, 5:36 PMmarstran
12/17/2019, 5:36 PMKroppeb
12/17/2019, 5:37 PMmarstran
12/17/2019, 5:47 PMmarstran
12/17/2019, 5:48 PM