Skip to content

Commit b37d09d

Browse files
committed
Jacynth: Fix claim annotation to not occlude
1 parent fda81da commit b37d09d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
"dependencies": {
6363
"@abstractplay/recranks": "latest",
64-
"@abstractplay/renderer": "^1.0.0-ci-12323485398.0",
64+
"@abstractplay/renderer": "^1.0.0-ci-12331730626.0",
6565
"@turf/boolean-contains": "^6.5.0",
6666
"@turf/boolean-intersects": "^6.5.0",
6767
"@turf/boolean-point-in-polygon": "^6.5.0",

src/games/jacynth.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,12 @@ export class JacynthGame extends GameBase {
703703
if (this.stack[this.stack.length - 1]._results.length > 0) {
704704
rep.annotations = [];
705705
for (const move of this.stack[this.stack.length - 1]._results) {
706-
if (move.type === "place" || move.type === "claim") {
706+
if (move.type === "place") {
707707
const [x, y] = JacynthGame.algebraic2coords(move.where!);
708708
rep.annotations.push({type: "enter", targets: [{row: y, col: x}]});
709+
} else if (move.type === "claim") {
710+
const [x, y] = JacynthGame.algebraic2coords(move.where!);
711+
rep.annotations.push({type: "enter", occlude: false, targets: [{row: y, col: x}]});
709712
}
710713
}
711714
}

0 commit comments

Comments
 (0)