Skip to content

Commit 1f1d3e2

Browse files
committed
feat(plugin25): check state succession
1 parent 8cbfe0c commit 1f1d3e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin2025/src/main/kotlin/sc/plugin2025/GameState.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,7 @@ data class GameState @JvmOverloads constructor(
302302
override fun longString(): String =
303303
toString()
304304

305+
fun succeedsState(other: GameState) =
306+
other.turn + 1 == turn || other.turn + 2 == turn
307+
305308
}

0 commit comments

Comments
 (0)