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 cc84bd8 commit 35610f3Copy full SHA for 35610f3
sdk/src/main/server-api/sc/api/plugins/TwoPlayerGameState.kt
@@ -2,6 +2,8 @@ package sc.api.plugins
2
3
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
4
5
+const val SENSIBLE_MOVES_COUNT = 64
6
+
7
abstract class TwoPlayerGameState<M: IMove>(
8
@XStreamAsAttribute
9
override val startTeam: Team
@@ -33,7 +35,7 @@ abstract class TwoPlayerGameState<M: IMove>(
33
35
* Bei manchen Spielen wird aufgrund der unüberschaubaren Zahl möglicher Züge
34
36
* nur ein Ausschnitt zurückgegeben.
37
* */
- open fun getSensibleMoves(): List<M> = moves().take(64)
38
+ open fun getSensibleMoves(): List<M> = moves().take(SENSIBLE_MOVES_COUNT)
39
40
/**
41
* Gibt progressiv alle möglichen Züge in der aktuellen Spielsituation zurück.
0 commit comments