Skip to content

Commit a1cb120

Browse files
committed
release: v23.0.0
1 parent b20b0fd commit a1cb120

File tree

8 files changed

+35
-175
lines changed

8 files changed

+35
-175
lines changed

CHANGELOG.md

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,87 +9,96 @@ The version should always be in sync with the [GUI](https://github.com/software-
99
- `y` is bumped for any major updates or backwards-incompatible changes.
1010
A `y` version of 0 marks the beta of the current year
1111
and likely contains breaking changes between patches.
12-
13-
## [22.1.0](https://github.com/software-challenge/backend/commits/22.1.0) Polish - 2021-11-15
12+
13+
### [23.0.0](https://github.com/software-challenge/backend/commits/23.0.0) Rough Penguins - 2022-07-28
14+
- Generify some plugin functionality to the SDK
15+
(RectangularBoard, Team.color)
16+
- Initial version of game "Hey, Danke für den Fisch" (Codename Penguins)
17+
with simplified game rules (can only move to adjacent fields)
18+
- Switch from unavailable maven repo for jargs
19+
20+
## 2023 Game Hey, Danke für den Fisch (Penguins) - 2022-07
21+
22+
### [22.1.0](https://github.com/software-challenge/backend/commits/22.1.0) Polish - 2021-11-15
1423
- Ensure compatibility beyond Java 16
1524
- Fix game ending a turn too late on round limit (7b096f105)
1625
- Fix irritating error messages at game end
1726
- Release TestClient
1827

19-
## [22.0.3](https://github.com/software-challenge/backend/commits/22.0.3) - 2021-07-26
28+
### [22.0.3](https://github.com/software-challenge/backend/commits/22.0.3) - 2021-07-26
2029
- Fix simpleclient setup
2130
- Only end game after full rounds
2231

23-
## [22.0.2](https://github.com/software-challenge/backend/commits/22.0.2) Protocol Revamp - 2021-07-16
32+
### [22.0.2](https://github.com/software-challenge/backend/commits/22.0.2) Protocol Revamp - 2021-07-16
2433
- Update documentation links
2534
- Various improvements around testing
26-
### Protocol
35+
#### Protocol
2736
- Reworked GameResult XML (add player information, include winner as team)
2837
- Simpler Player XML (team as attribute)
2938
- Join without specifying a gameType
3039
- Removed test mode - add up the GameResults instead ([#385](https://github.com/software-challenge/backend/pull/385))
3140
- Do not send repeated MoveRequests when pausing/unpausing
3241
- Stop terminating client connections upon protocol issues ([6c6d6fa51](https://github.com/software-challenge/backend/commit/6c6d6fa51af71eea3914303cb886bd8b78be53a0))
3342

34-
## [22.0.1](https://github.com/software-challenge/backend/commits/22.0.1) Adjust Ostseeschach plugin - 2021-06-25
43+
### [22.0.1](https://github.com/software-challenge/backend/commits/22.0.1) Adjust Ostseeschach plugin - 2021-06-25
3544
- Implemented proper winner calculation
3645
- Added some utility methods
3746
- Adjusted XML
3847

39-
## [22.0.0](https://github.com/software-challenge/backend/commits/22.0.0) - 2021-06-11
48+
### [22.0.0](https://github.com/software-challenge/backend/commits/22.0.0) - 2021-06-11
4049
- Restructured folders to follow JVM standards
4150
- Simplified interface for player development
4251

43-
## 2022 Game Ostseeschach - 2021-06-11
52+
## 2022 Game Ostseeschach - 2021-06
4453

45-
## [21.4.0](https://github.com/software-challenge/backend/commits/21.4.0) - 2021-05-28
54+
### [21.4.0](https://github.com/software-challenge/backend/commits/21.4.0) - 2021-05-28
4655
- Enable preparing games without reservations
4756
- Implement generic replay saving & loading
4857
- Create an AdminClient to interface more conveniently with the server
4958
- Distinguish RoomMessages from ProtocolPackets
5059
- Send GamePaused message after a Game has been paused
5160

52-
## [21.3.3](https://github.com/software-challenge/backend/commits/21.3.3) - 2021-03-01
61+
### [21.3.3](https://github.com/software-challenge/backend/commits/21.3.3) - 2021-03-01
5362
- Game: Refactor turn advancing logic ([#391](https://github.com/software-challenge/backend/pull/391))
5463
- Networking: Improve Exception handling within games and rooms ([#383](https://github.com/software-challenge/backend/pull/383))
5564

56-
## [21.3.2](https://github.com/software-challenge/backend/commits/21.3.2) - 2021-02-12
57-
### Fixed
65+
### [21.3.2](https://github.com/software-challenge/backend/commits/21.3.2) - 2021-02-12
66+
#### Fixed
5867
- GameState: Alignment of round number with turn number (49676b64c)
5968
- TestClient: Prevent a race-condition that could occur when getting the results of the first game (4f33fc01f)
6069

61-
## [21.3.1](https://github.com/software-challenge/backend/commits/21.3.1) - 2021-02-11
62-
### Fixed
70+
### [21.3.1](https://github.com/software-challenge/backend/commits/21.3.1) - 2021-02-11
71+
#### Fixed
6372
- Fix GameState clone, hashCode and equals to include [undeployedPieceShapes](https://github.com/software-challenge/backend/commit/010f077747d4bba0a9397b536da7f48d88bf1a74) and [validColors](https://github.com/software-challenge/backend/commit/cbda82827932cd288576ba0320c03615cba9dab7)
6473
- Remove superfluous `class` attributes from GameState XML
6574
- Synchronize XML packet sending to prevent messages from interleaving ([219466c0a](https://github.com/software-challenge/backend/commit/219466c0a))
66-
### Infrastructure
75+
#### Infrastructure
6776
- Extend GameState XML (#381) and Network tests (#363)
6877
- Setup GitHub Actions (#384)
6978

70-
## [21.3.0](https://github.com/software-challenge/backend/commits/21.3.0) - 2021-01-29
71-
### Fixed
79+
### [21.3.0](https://github.com/software-challenge/backend/commits/21.3.0) - 2021-01-29
80+
#### Fixed
7281
- Send final Gamestate to listeners when a game ends ([#364](https://github.com/software-challenge/backend/pull/364))
7382
- Remove extra field from Move/Piece XML ([23589a153](https://github.com/software-challenge/backend/commit/23589a153e8cd3c5b1b3257ff35f66ebbb8d3012))
7483
- Player dependency declarations ([#373](https://github.com/software-challenge/backend/pull/373))
7584
- TestClient: Make it work ([#372](https://github.com/software-challenge/backend/pull/372)) & load current Game id from classpath ([#367](https://github.com/software-challenge/backend/pull/367))
7685

77-
### Added
86+
#### Added
7887
- Implement cloning for GameState & Board ([#356](https://github.com/software-challenge/backend/pull/356))
7988
- Add README for player ([#373](https://github.com/software-challenge/backend/pull/373))
8089
- Create CONTRIBUTING & GUIDELINES ([#360](https://github.com/software-challenge/backend/pull/360))
8190
- Modularize XStream initialization using ServiceLoader ([#352](https://github.com/software-challenge/backend/pull/352))
8291

83-
### Changed
92+
#### Changed
8493
- Improve logback config ([#371](https://github.com/software-challenge/backend/pull/371))
8594
- Improve Gradle configuration & TestClient build ([#368](https://github.com/software-challenge/backend/pull/368))
8695

87-
## [21.2.1](https://github.com/software-challenge/backend/commits/21.2.1) - 2020-12-18
96+
### [21.2.1](https://github.com/software-challenge/backend/commits/21.2.1) - 2020-12-18
8897
- Improve internal build logic ([#343](https://github.com/software-challenge/backend/pull/343))
8998
- Improve & translate toString messages
9099
- Use MoveMistakes to construct InvalidMoveExceptions ([#321](https://github.com/software-challenge/backend/pull/321))
91100

92-
## [21.2.0](https://github.com/software-challenge/backend/commits/21.2.0) - 2020-12-14
101+
### [21.2.0](https://github.com/software-challenge/backend/commits/21.2.0) - 2020-12-14
93102
- converted lots of classes to Kotlin
94103
- internal Protocol updates & game flow adjustments
95104
- updated many tests

game_plugins/plugin2022/Board.kt

Lines changed: 0 additions & 145 deletions
This file was deleted.

player/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sourceSets.main {
1818
}
1919

2020
application {
21-
mainClassName = "sc.player2022.Starter"
21+
mainClassName = "sc.player2023.Starter"
2222
}
2323

2424
dependencies {

plugin/src/main/kotlin/sc/plugin2023/util/GamePlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import sc.shared.ScoreFragment
1111

1212
class GamePlugin: IGamePlugin {
1313
companion object {
14-
const val PLUGIN_ID = "swc_2023_pinguine"
14+
const val PLUGIN_ID = "swc_2023_penguins"
1515
val scoreDefinition: ScoreDefinition =
1616
ScoreDefinition(arrayOf(
1717
ScoreFragment("Siegpunkte", ScoreAggregation.SUM),

plugin/src/test/kotlin/sc/plugin2023/MoveTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
package sc.plugin2022
1+
package sc.plugin2023
22

33
import io.kotest.core.spec.style.FunSpec
44
import io.kotest.matchers.*
55
import io.kotest.matchers.nulls.*
66
import sc.api.plugins.Coordinates
77
import sc.api.plugins.Vector
88
import sc.helpers.shouldSerializeTo
9-
import sc.plugin2023.Move
10-
import sc.plugin2023.y
119
import sc.protocol.room.RoomPacket
1210

1311
class MoveTest: FunSpec({

sdk/src/main/server-api/sc/api/plugins/RectangularBoard.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ open class RectangularBoard<FIELD: IField<FIELD>>(
101101
gameField[index.div(gameField.size)][index.mod(gameField.size)]
102102

103103
fun readResolve(): Any {
104+
@Suppress("SENSELESS_COMPARISON")
104105
if(gameField == null) {
105106
val field = RectangularBoard::class.java.getDeclaredField("gameField")
106107
field.isAccessible = true

sdk/src/main/server-api/sc/api/plugins/TwoPlayerGameState.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package sc.api.plugins
22

3-
import sc.shared.InvalidMoveException
4-
import sc.shared.MoveMistake
5-
63
abstract class TwoPlayerGameState<M: IMove>(
74
val startTeam: Team
85
) : IGameState {

sdk/src/test/kotlin/sc/api/CoordinatesTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package sc.plugin2022
1+
package sc.api
22

33
import io.kotest.matchers.shouldBe
44
import io.kotest.matchers.shouldNotBe

0 commit comments

Comments
 (0)