Skip to content

Commit 9e9b867

Browse files
committed
feat(plugin): put the starting piece info into GameState's toString
1 parent 8a42642 commit 9e9b867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/shared/sc/plugin2021/GameState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class GameState @JvmOverloads constructor(
118118
logger.debug("Remaining Colors: $orderedColors")
119119
}
120120

121-
override fun toString(): String = "GameState $round/$turn -> $currentColor"
121+
override fun toString(): String = "GameState $round/$turn -> $currentColor ${if (GameRuleLogic.isFirstMove(this)) "(Start Piece: $startPiece)" else ""}"
122122

123123
override fun equals(other: Any?): Boolean {
124124
return !(this === other) &&

0 commit comments

Comments
 (0)