Skip to content

Commit

Permalink
fix cv, and co to start of game
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeppell committed Feb 27, 2025
1 parent 574dfcd commit 33c08a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions modules/game/src/main/SgfDump.scala
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,8 @@ final class SgfDump(
List(
Tag(_.GM, 6),
Tag(_.RU, "Crawford" + (if (isCrawfordGame) ":CrawfordGame" else "") + crawfordVariantLine),
Tag(_.CV, game.board.cubeData.map(_.value).getOrElse(1)),
Tag(
_.CO,
game.board.cubeData.fold('n')(_.owner.fold('c')(p => if (p == PlayerIndex.P1) 'w' else 'b'))
),
Tag(_.CV, 1),
Tag(_.CO, game.board.cubeData.fold('n')(_ => 'c')),
Tag.matchInfo(matchInfo._1, matchInfo._2, matchInfo._3, matchInfo._4)
)
}
Expand Down
2 changes: 1 addition & 1 deletion ui/analyse/src/sgfExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function renderFullTxt(ctrl: AnalyseCtrl): string {
//TODO options depend on what functionality we need in analysis page
tags.push(['GM', '6']);
tags.push(['RU', 'Crawford']);
tags.push(['CV', g.pointValue.toString()]);
tags.push(['CV', '1']);
}
if (['amazons'].includes(g.variant.key)) {
tags.push(['GM', '18']);
Expand Down

0 comments on commit 33c08a7

Please sign in to comment.