getCellAt

open fun getCellAt(location: Location): Cell(source)

Tries to retrieve a cell at the given location. If there is no cell at the location, for example since the location is out of bounds, an exception is thrown. This method should only be used if it is guaranteed that there is a cell at the location.

Return

the cell at the location

Parameters

location

the location to retrieve the cell from

Throws

if there is no cell at the location