Skip to content

Commit

Permalink
Merge pull request #209 from TruncateGame/main
Browse files Browse the repository at this point in the history
Production deploy March 17 2024 #2
  • Loading branch information
bglw authored Mar 17, 2024
2 parents b1afe12 + 720b667 commit 1559b61
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion truncate_client/src/lil_bits/board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'a> BoardUI<'a> {
&game_area,
self.board.width(),
self.board.height(),
0.4..2.0,
0.05..2.0,
(0, 0),
);
let theme = theme.rescale(depot.board_info.board_zoom);
Expand Down
40 changes: 19 additions & 21 deletions truncate_client/tutorials/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ rules:
gets: "E"
- message: |-
Since 'GROWING' is a valid word touching your opponent's town, you win the game.
Since "GROWING" is a valid word touching your opponent's town, you win the game.
- message: |-
You can check whether words are valid in Truncate's dictionary using the menu in the bottom right.
Expand All @@ -115,7 +115,7 @@ rules:
- description: |-
To win, the word touching your opponent's town has to be valid, but the rest of your words don't.
You will win if you play 'R' to form 'YOUR', even though you have invalid words like 'AXQT' on your board.
You will win if you play 'R' to form "YOUR", even though you have invalid words like "AXQT" on your board.
you: "R -> 1,2"
gets: "E"
Expand Down Expand Up @@ -171,12 +171,14 @@ rules:
- description: |-
You can swap by clicking one and then the other, or by dragging one onto the other.
Try turning "VALDI" into "VALID" by swapping the "D" and "I." Note, you can't swap between the board and your hand.
Try turning "VALDI" into "VALID" by swapping the 'D' and 'I'. Note, you can't swap between the board and your hand.
you: "4,5 -> 5,5"
gets: "_"
- message: |-
This used up your turn, but now your word is valid!
You can't swap twice in a row, so your next turn would have to place a tile.
# TODO: Show the can't swap between disjoint groups rule
- category: Battles
scenarios:
- name: "Valid beats invalid"
Expand Down Expand Up @@ -266,14 +268,14 @@ rules:

steps:
- description: |-
Long words beat short words in a battle. "ENORMOUS" is significantly longer than "PUNY" and would win in a battle.
Long valid words beat short words in a battle. "ENORMOUS" is significantly longer than "PUNY" and would win in a battle.
Try playing an "E" to defeat your opponent's word.
you: "E -> 8,3"
gets: "F"
- message: |-
"ENORMOUS" was easily long enough to beat "PUNY", so "PUNY" was removed from the board.
"ENORMOUS" was valid, and easily long enough to beat "PUNY", so "PUNY" was removed from the board.
- name: "Defender's advantage"
description: "The defender has a length bonus"
Expand Down Expand Up @@ -353,7 +355,7 @@ rules:
In Truncate, the weakest defender determines the outcome of a battle.
- message: |-
This means that even if you have a strong word, it can be undermined by a weaker one.
This means that even if you have a strong word on the board, it can be undermined by one of your weaker words.
- description: |-
For example, you can attack "PAIR" with "TRAP". Normally, you wouldn't win due to the defender's advantage.
Expand All @@ -363,7 +365,7 @@ rules:
- message: |-
"PI" was destroyed since it was shorter than "TRAP", but "PAIR" was not. Even though you won the battle, you only destroyed words that were weaker than your attack.
- description: |-
Since the "P" in "PAIR" was also in "PI", it was destroyed, shortening "PAIR" to "AIR".
Since the 'P' in "PAIR" was also in "PI", it was destroyed, shortening "PAIR" to "AIR".
Now your opponent will take their turn.
computer: "R -> 1,7"
Expand All @@ -382,7 +384,7 @@ rules:
- message: |-
When an attack succeeds, all tiles touching the attack are removed, even if they were part of a surviving word.
As a result, the "C" in "CALF" was destroyed.
As a result, the 'C' in "CALF" was destroyed.
- name: "Failed attacks"
Expand Down Expand Up @@ -499,19 +501,15 @@ rules:
- name: "Conclusion"
description: ""
board: |-
~~ ~~ ~~ ~~ |0 ~~ ~~ ~~ ~~ ~~ ~~
~~ ~~ ~~ __ E0 #0 __ __ ~~ ~~ ~~
~~ ~~ __ __ T0 __ __ ~~ ~~ ~~ ~~
~~ __ __ __ A0 __ __ __ __ ~~ ~~
~~ __ __ __ T0 __ __ __ __ ~~ ~~
~~ __ __ __ S0 __ __ __ __ ~~ ~~
~~ ~~ __ __ E0 __ __ __ ~~ ~~ ~~
~~ __ __ __ R0 __ __ ~~ ~~ ~~ ~~
~~ __ __ __ __ __ __ __ __ ~~ ~~
~~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