Skip to content

Commit

Permalink
release: 22.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Jul 16, 2021
1 parent eb700f7 commit aff6075
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
14 changes: 8 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ The version should always be in sync with the [GUI](https://github.com/software-

- The major version `x` corresponds to the year of the contest and thus only changes once a year
- `y` is bumped for any major updates or backwards-incompatible changes.
A `y` version of 0 indicates the beta of the current year.
A `y` version of 0 marks the beta of the current year.

## [22.1.0](https://github.com/software-challenge/backend/commits/22.1.0) - 2021-09

## [22.0.2](https://github.com/software-challenge/backend/commits/22.0.2) - 2021-07
## [22.0.2](https://github.com/software-challenge/backend/commits/22.0.2) - 2021-07-16
- Update documentation links
- Various improvements in tests
- Various improvements around testing
### Protocol
- Reworked GameResult XML (add player information, include winner as team)
- Simplified Player XML (team as attribute)
- Can join without specifying a gameType
- Removed PlayerScoreRequest and TestModeRequest - add up the GameResults instead ([#385](https://github.com/software-challenge/backend/pull/385))
- Simpler Player XML (team as attribute)
- Join without specifying a gameType
- Removed test mode - add up the GameResults instead ([#385](https://github.com/software-challenge/backend/pull/385))
- Do not send repeated MoveRequests when pausing/unpausing
- Stop terminating client connections upon protocol issues ([6c6d6fa51](https://github.com/software-challenge/backend/commit/6c6d6fa51af71eea3914303cb886bd8b78be53a0))

## [22.0.1](https://github.com/software-challenge/backend/commits/22.0.1) - 2021-06-25
### Ostseeschach
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
socha.gameName=ostseeschach
socha.version.year=22
socha.version.minor=00
socha.version.patch=01
socha.version.patch=02
2 changes: 1 addition & 1 deletion gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ tasks {
val release by creating {
dependsOn(clean, check)
group = "distribution"
description = "Prepares a new Release by bumping the version and creating a commit with a git tag of the new version"
description = "Prepares a new Release by bumping the version and creating a commit with a git tag for the new version"
doLast {
fun edit(original: String, version: String, new: Int) =
if (original.startsWith("socha.version.$version"))
Expand Down
3 changes: 2 additions & 1 deletion helpers/test-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ tasks {
dependsOn(createStartScripts)
doFirst {
manifest.attributes["Class-Path"] =
configurations.default.get().map { "lib/" + it.name }
configurations.default.get()
.map { "lib/" + it.name }
.plus("server.jar")
.joinToString(" ")
copy {
Expand Down
2 changes: 2 additions & 0 deletions sdk/src/main/server-api/sc/networking/clients/AdminClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import sc.protocol.requests.PrepareGameRequest
import sc.protocol.room.ObservableRoomMessage

class AdminClient(private val client: LobbyClient) {
val closed: Boolean
get() = client.isClosed

fun prepareGame(request: PrepareGameRequest) {
client.send(request)
Expand Down
8 changes: 3 additions & 5 deletions server/src/main/java/sc/server/network/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sc.api.plugins.exceptions.GameLogicException;
import sc.api.plugins.exceptions.NotYourTurnException;
import sc.api.plugins.exceptions.RescuableClientException;
import sc.networking.INetworkInterface;
import sc.networking.UnprocessedPacketException;
Expand Down Expand Up @@ -100,9 +98,9 @@ protected void onDisconnect(DisconnectCause cause) {
@Override
protected void onObject(@NotNull ProtocolPacket message) throws UnprocessedPacketException {
/*
* NOTE that this method is called in the receiver thread. Messages
* should only be passed to listeners. No callbacks should be invoked
* directly in the receiver thread.
* NOTE that this method is called in the receiver thread.
* Messages should only be passed to listeners.
* No callbacks should be invoked directly in the receiver thread.
*/
Collection<RescuableClientException> errors = new ArrayList<>();

Expand Down

0 comments on commit aff6075

Please sign in to comment.