Ellen Spertus
Klitos Kyriacou
var x: Int var y: Int do { x = Random.nextInt(0, NUM_COLS) y = Random.nextInt(0, NUM_ROWS) } while (isOccupied(x, y)) place(entity, x, y)
ephemient
val
val x: Int var y: Int if (Random.nextBoolean()) { return } else { x = 1 y = 2 } // OK to use x and y here
bezrukov
placeIfEmpty(entity, x, y)
do { val x = Random.nextInt(NUM_COLS) val y = Random.nextInt(NUM_ROWS) } while(!placeIfEmpty(entity, x, y)
while
A modern programming language that makes developers happier.