We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d8a5a0 commit f168a29Copy full SHA for f168a29
plugin/src/shared/sc/plugin2021/Board.kt
@@ -16,6 +16,12 @@ class Board(
16
17
constructor(other: Board) : this(Array(other.gameField.size) { other.gameField[it].clone() })
18
19
+ constructor(vararg fields: Field) : this() {
20
+ fields.forEach {
21
+ set(it.coordinates, it.content)
22
+ }
23
24
+
25
/** Prüft, ob alle Felder leer sind. */
26
fun isEmpty() =
27
gameField.all { row ->
0 commit comments