Grid

blockudoku.models.Grid
case class Grid(xLength: Int, yLength: Int, tiles: List[Tile])

Represents the state of the grid.

Value parameters

tiles

list of tiles that make up the grid.

xLength

size of the grid in the x-axis.

yLength

size of the grid in the y-axis.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def copy(): Grid
def copyWithNewState(updatedTiles: List[Tile], newState: TileState, newColors: Int): Grid
def copyWithNewState(updatedTiles: List[Tile], newState: TileState): Grid
def elementTiles(element: Element, selectedPos: Int): Option[List[Tile]]
def tile(xPos: Int, yPos: Int): Option[Tile]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product