From d53606c6620d2817bca776c6659f86a894127a45 Mon Sep 17 00:00:00 2001 From: Johannes Nydahl Date: Wed, 6 Nov 2024 13:42:13 +0100 Subject: [PATCH] fix life class tips in lab w08 --- workspace/w08_life/Life.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/w08_life/Life.scala b/workspace/w08_life/Life.scala index 7faf527a3..c4e941d38 100644 --- a/workspace/w08_life/Life.scala +++ b/workspace/w08_life/Life.scala @@ -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)