Skip to content

Commit a54f035

Browse files
committed
WIP - fix for multiaction games
1 parent 2ee54e0 commit a54f035

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/scala/Chess.scala

+1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ object Chess {
246246
path = path,
247247
id = UciCharPair(game.board.variant.gameLogic, move.uci),
248248
ply = game.plies,
249+
playerIndex = game.player,
249250
turnCount = game.turnCount,
250251
move = move,
251252
fen = fen,

src/main/scala/ipc/ClientIn.scala

+3-1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ object ClientIn {
160160
path: Path,
161161
id: UciCharPair,
162162
ply: Int,
163+
playerIndex: PlayerIndex,
163164
turnCount: Int,
164165
move: Uci.WithSan,
165166
fen: FEN,
@@ -181,7 +182,8 @@ object ClientIn {
181182
"path" -> path,
182183
"node" -> Json
183184
.obj(
184-
"ply" -> ply,
185+
"ply" -> ply,
186+
"playerIndex" -> playerIndex.name,
185187
//TODO verify if this is actually being used and where receives this
186188
"turnCount" -> turnCount,
187189
"fen" -> fen,

0 commit comments

Comments
 (0)