Skip to content

Commit f749bc4

Browse files
committed
Terrace: Change piece heights and add assassination description in notes
1 parent 8026a77 commit f749bc4

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

locales/en/apgames.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
"tafl": "The variant names are in the format {ruleset}-{board size}-{initial layout}-{optional: starting player}. For example, 'linnaean-9x9-tcross-w' is the linnaean rules on a 9x9 board with T-cross setup, and the starting player is the defenders. If starting player is not mentioned, then attackers start.",
204204
"taiji": "Moves are done with two clicks. The first tile you place is always the light one, and then the dark one.",
205205
"tbt": "When it's your turn, you will see the die you have to work with, but once your move is complete, the die will reroll. Exploration is not helpful because the die roll is not finalized until after the move is submitted. As you scroll back through the game history, the die you see is for the *next* turn. The die used to make the move you're seeing is displayed below the board.",
206+
"terrace": "The Assassination variant is described in [this BGG thread](https://boardgamegeek.com/thread/551125/variant-for-more-aggressive-less-drawish-play), summarized below:\n\n- Up straight, you must be larger or the king can assassinate a largest-size piece.\n\n- Same level (adjacent only), you must be at least the same size.\n\n- Down diagonal, you must be smaller.",
206207
"toguz": "Depicting state changes in sowing games is challenging. The initial chosen pit is marked, as is any capture. Small numbers appear to show the change in the number of stones in each pit. If you believe you have encountered a bug, please let us know in Discord.",
207208
"tumbleweed": "A space is claimed by a player if they have a piece on it, or if they have the majority of the line of sights to it. The score is the number of territory own by each player. The game ends when both players pass in succession. If there is no change in score for 20 plies, the game also ends.",
208209
"twixt": "The notation is based on Hansel notation at <http://www.ibiblio.org/twixtpuzzles/>. Some modifications are that link removal specifically specifies the link direction, and commas separate the moves. To add/remove links, click on the pegs between them. You can also remove a link by clicking on the line itself.",

src/games/terrace.ts

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -694,19 +694,19 @@ export class TerraceGame extends GameBase {
694694
},
695695
"A2": {
696696
piece: "cylinder",
697-
height: pcHeight * 2,
697+
height: pcHeight * 1.26,
698698
scale: this.boardSize === 8 ? 0.5 : 0.66,
699699
colour: 1,
700700
},
701701
"A3": {
702702
piece: "cylinder",
703-
height: pcHeight * 3,
703+
height: pcHeight * 1.59,
704704
scale: this.boardSize === 8 ? 0.75 : 0.95,
705705
colour: 1,
706706
},
707707
"A4": {
708708
piece: "cylinder",
709-
height: pcHeight * 4,
709+
height: pcHeight * 1.92,
710710
scale: 0.95,
711711
colour: 1,
712712
},
@@ -724,19 +724,19 @@ export class TerraceGame extends GameBase {
724724
},
725725
"B2": {
726726
piece: "cylinder",
727-
height: pcHeight * 2,
727+
height: pcHeight * 1.29,
728728
scale: this.boardSize === 8 ? 0.5 : 0.66,
729729
colour: 2,
730730
},
731731
"B3": {
732732
piece: "cylinder",
733-
height: pcHeight * 3,
733+
height: pcHeight * 1.59,
734734
scale: this.boardSize === 8 ? 0.75 : 0.95,
735735
colour: 2,
736736
},
737737
"B4": {
738738
piece: "cylinder",
739-
height: pcHeight * 4,
739+
height: pcHeight * 1.92,
740740
scale: 0.95,
741741
colour: 2,
742742
},
@@ -815,6 +815,19 @@ export class TerraceGame extends GameBase {
815815
width: this.boardSize,
816816
height: this.boardSize,
817817
heightmap: realhm as [[number, ...number[]], ...[number, ...number[]][]],
818+
// highlight target cells
819+
markers: [
820+
{
821+
type: "flood",
822+
colour: 1,
823+
points: [{row: 0, col: this.boardSize - 1}],
824+
},
825+
{
826+
type: "flood",
827+
colour: 2,
828+
points: [{row: this.boardSize - 1, col: 0}],
829+
}
830+
],
818831
},
819832
legend: myLegend,
820833
pieces: pstr as [string[][], ...string[][][]],
@@ -852,6 +865,17 @@ export class TerraceGame extends GameBase {
852865
}
853866
});
854867
}
868+
// highlight target cells
869+
markers.push({
870+
type: "flood",
871+
colour: 1,
872+
points: [{row: 0, col: this.boardSize - 1}],
873+
});
874+
markers.push({
875+
type: "flood",
876+
colour: 2,
877+
points: [{row: this.boardSize - 1, col: 0}],
878+
})
855879

856880
// Build rep
857881
rep = {

0 commit comments

Comments
 (0)