Skip to content

Commit 8f18737

Browse files
committed
release: v25.0.4
1 parent 6adbccb commit 8f18737

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The version should always be in sync with the [GUI](https://github.com/software-
1010
A `y` version of 0 marks the beta of the current year
1111
and likely contains breaking changes between patches.
1212

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+
1317
### 25.0.3 Auxiliaries - 2024-06-25
1418
- revamp a few internal helper methods
1519
- fix GameResult

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
socha.gameName=hui
22
socha.version.year=25
33
socha.version.minor=00
4-
socha.version.patch=03
4+
socha.version.patch=04
55
socha.version.suffix=

plugin/src/main/kotlin/sc/plugin2023/GameState.kt

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import sc.plugin2023.util.PenguinsMoveMistake
77
import sc.plugin2023.util.PenguinConstants
88
import sc.shared.InvalidMoveException
99
import sc.shared.MoveMistake
10+
import sc.shared.WinCondition
1011

1112
/**
1213
* Der aktuelle Spielstand.
@@ -81,6 +82,9 @@ data class GameState @JvmOverloads constructor(
8182
override val isOver: Boolean
8283
get() = immovable()
8384

85+
override val winCondition: WinCondition?
86+
get() = TODO("Not yet implemented")
87+
8488
/** Berechne die Punkteanzahl für das gegebene Team. */
8589
override fun getPointsForTeam(team: ITeam): IntArray =
8690
intArrayOf(fishes[team.index])

server/src/test/java/sc/server/plugins/TestGameState.kt

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import sc.api.plugins.IMove
55
import sc.api.plugins.ITeam
66
import sc.api.plugins.Team
77
import sc.framework.plugins.Player
8+
import sc.shared.WinCondition
89

910
data class TestGameState(
1011
override var turn: Int = 0,
@@ -14,8 +15,11 @@ data class TestGameState(
1415
override val currentTeam: Team
1516
get() = Team.values()[turn % Team.values().size]
1617

17-
@Transient
18-
override val isOver = false
18+
override val isOver
19+
get() = false
20+
21+
override val winCondition: WinCondition?
22+
get() = null
1923

2024
override fun getPointsForTeam(team: ITeam): IntArray =
2125
intArrayOf(team.index, turn)

0 commit comments

Comments
 (0)