Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion workspace/w08_life/Life.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ case class Life(cells: Matrix[Boolean]):
def nbrOfNeighbours(row: Int, col: Int): Int = ???

/** Skapar en ny Life-instans med nästa generation av universum.
* Detta sker genom att applicera funktionen \code{rule} på cellerna.
* Detta sker genom att applicera funktionen rule på cellerna.
*/
def evolved(rule: (Int, Int, Life) => Boolean = Life.defaultRule):Life =
var nextGeneration = Life.empty(cells.dim)
Expand Down