File tree 4 files changed +15
-3
lines changed
plugin/src/main/kotlin/sc/plugin2023
server/src/test/java/sc/server/plugins
4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ The version should always be in sync with the [GUI](https://github.com/software-
10
10
A ` y ` version of 0 marks the beta of the current year
11
11
and likely contains breaking changes between patches.
12
12
13
+ ### 25.0.4 Allow Follow-up Move - 2024-06-26
14
+ - Always finish the round even if one player is already in the goal
15
+ - Emit proper GameResult when game ends regularly through implementing WinCondition
16
+
13
17
### 25.0.3 Auxiliaries - 2024-06-25
14
18
- revamp a few internal helper methods
15
19
- fix GameResult
Original file line number Diff line number Diff line change 1
1
socha.gameName =hui
2
2
socha.version.year =25
3
3
socha.version.minor =00
4
- socha.version.patch =03
4
+ socha.version.patch =04
5
5
socha.version.suffix =
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import sc.plugin2023.util.PenguinsMoveMistake
7
7
import sc.plugin2023.util.PenguinConstants
8
8
import sc.shared.InvalidMoveException
9
9
import sc.shared.MoveMistake
10
+ import sc.shared.WinCondition
10
11
11
12
/* *
12
13
* Der aktuelle Spielstand.
@@ -81,6 +82,9 @@ data class GameState @JvmOverloads constructor(
81
82
override val isOver: Boolean
82
83
get() = immovable()
83
84
85
+ override val winCondition: WinCondition ?
86
+ get() = TODO (" Not yet implemented" )
87
+
84
88
/* * Berechne die Punkteanzahl für das gegebene Team. */
85
89
override fun getPointsForTeam (team : ITeam ): IntArray =
86
90
intArrayOf(fishes[team.index])
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import sc.api.plugins.IMove
5
5
import sc.api.plugins.ITeam
6
6
import sc.api.plugins.Team
7
7
import sc.framework.plugins.Player
8
+ import sc.shared.WinCondition
8
9
9
10
data class TestGameState (
10
11
override var turn : Int = 0 ,
@@ -14,8 +15,11 @@ data class TestGameState(
14
15
override val currentTeam: Team
15
16
get() = Team .values()[turn % Team .values().size]
16
17
17
- @Transient
18
- override val isOver = false
18
+ override val isOver
19
+ get() = false
20
+
21
+ override val winCondition: WinCondition ?
22
+ get() = null
19
23
20
24
override fun getPointsForTeam (team : ITeam ): IntArray =
21
25
intArrayOf(team.index, turn)
You can’t perform that action at this time.
0 commit comments