method
Grid.blocked
Grid.blocked(x, y, wall) -> bool
Whether (x, y) blocks movement — true if it is out of bounds or its tile equals wall. The passability test the other Grid functions share.
Parameters
wallthe impassable tile char, e.g. '#'Example
program Demo {
handler H phase Update {
if Grid.blocked(0, 0, '#') { print(1) }
}
}