Skip to content

Instantly share code, notes, and snippets.

View dsteb's full-sized avatar

Dmitrii Stebliuk dsteb

View GitHub Profile
@dsteb
dsteb / BoardImpl.kt
Last active October 23, 2021 20:32
Kotlin for Java Developers: week 4, Programming Assignment: Board
package board
import board.Direction.*
private open class SquareBoardImpl(width: Int) : SquareBoard {
override val width: Int = width
private val cells: List<List<Cell>> = (1..width).map { row ->
(1..width).map { Cell(row, it) }