Skip to content

Commit

Permalink
Reuse width and height from the previous board
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasheine committed Jan 10, 2018
1 parent 9c9a7e0 commit 616374e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data class SimulationBoardEntity(private val cellMatrix: CellMatrix) : BoardEnti
val seeds = this.cellMatrix.getSeeds().toMutableList()
seeds.addAll(patternEntity.getSeeds())

val cellMatrix = ListBasedMatrix(width = 50, height = 50, seeds = seeds)
val cellMatrix = ListBasedMatrix(width = cellMatrix.getWidth(), height = cellMatrix.getHeight(), seeds = seeds)
return SimulationBoardEntity(cellMatrix)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.novoda.gol.presentation

/**
* User: tobiasheine
* Date: 10.01.18
* Time: 16:31
*/
class AppTerminalView {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.novoda.gol.presentation

/**
* User: tobiasheine
* Date: 10.01.18
* Time: 16:42
*/
class BoardTerminalView {
}

0 comments on commit 616374e

Please sign in to comment.