vonNeumannNeighborhood

fun vonNeumannNeighborhood(cell: Cell, includeSelf: Boolean = false): List<Cell>(source)

The 4 cells in the Von Neumann neighborhood (Manhattan distance

  1. around cell. If includeSelf is true, cell is included.