Skip to content

Commit 1c4ffb5

Browse files
author
Jean Poree
committed
Merge branch 'fix-solo-summaries' into 'master'
[FIX][SDK] Fixed abscence of summaries for SOLOs See merge request codingame/game-engine!170
2 parents ffe498f + c5343e4 commit 1c4ffb5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

playground/misc/misc-3-release-notes.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ The CodinGame SDK is regularly updated and improved. This document lets you know
66

77
### 🎁 New feature
88

9-
- the [EndScreenModule](playground/extensions/extensions-4-endscreen.md) is now bundled with the sdk.
9+
- The [EndScreenModule](playground/extensions/extensions-4-endscreen.md) is now bundled with the sdk.
10+
11+
### 🐞 Bug fix
12+
13+
- Fixed absence of game summaries from the local test page of SOLO games.
1014

1115
## 3.1.0
1216

runner/src/main/java/com/codingame/gameengine/runner/GameRunner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private void runAgents() {
137137
if (validTurn) {
138138
gameResult.outputs.get("referee").add(refereeStdout.toString());
139139
refereeStdout.reset();
140-
gameResult.summaries.add(turnInfo.get(InputCommand.SUMMARY).orElse(null));
140+
gameResult.summaries.add(turnInfo.get(InputCommand.SUMMARY).orElse(turnInfo.get(InputCommand.INFOS).orElse(null)));
141141
}
142142

143143
if ((validTurn) && (!turnInfo.get(InputCommand.SCORES).isPresent())) {
@@ -425,9 +425,9 @@ public void write(int b) throws IOException {
425425
requireGameNotEnded();
426426
Properties conf = new Properties();
427427
initialize(conf);
428-
428+
429429
runAgents();
430-
430+
431431
referee.destroy();
432432
destroyPlayers();
433433
gameEnded = true;

0 commit comments

Comments
 (0)