aboutsummaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-01-12 23:04:44 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2023-01-12 23:04:44 +0100
commit1a1ee228569a0a495c501c8d323d193698ebd95c (patch)
tree67b9da328b47094be5990f6aeb3612916803b6f7 /rules
parent2766732f5e3c1852b390b2f3f688f358d921f3d9 (diff)
downloadmuhqs-game-1a1ee228569a0a495c501c8d323d193698ebd95c.tar.gz
muhqs-game-1a1ee228569a0a495c501c8d323d193698ebd95c.zip
rules: actually add condition to range statement
Diffstat (limited to 'rules')
-rw-r--r--rules/de/rules.md3
-rw-r--r--rules/en/rules.md2
2 files changed, 2 insertions, 3 deletions
diff --git a/rules/de/rules.md b/rules/de/rules.md
index 521afdcf..f5e1c1a8 100644
--- a/rules/de/rules.md
+++ b/rules/de/rules.md
@@ -231,8 +231,7 @@ Solange kontrollierte ungetappte Karte auf dem Spielfeld oder spielbare Karte in
* **Ranges** haben einen Ursprung.
* **Ranges** haben einen Radius r.
* **Ranges** mit dem Radius `r` beinhalten alle **Felder** die mit `r` **Schritten**, wobei jeder zweite diagonale **Schritt** doppelt zählen, vom Ursprung erreichbar sind.
-* Mathematisch ausgedrückt ein Feld (x, y), wobei x und y relativ zum Ursprung (0, 0) der Range angegeben werden, liegt in **Range** r genau dann wenn $$x > y$$ und
-$$abs(x) + floor(abs(y) / 2)$$ sonst $$abs(y) + floor(abs(x) / 2)$$.
+* Mathematisch ausgedrückt ein Feld (x, y), wobei x und y relativ zum Ursprung (0, 0) der Range angegeben werden, liegt in **Range** r genau dann wenn $$x > y$$ und $$abs(x) + floor(abs(y) / 2) <= r$$ sonst $$abs(y) + floor(abs(x) / 2) <= r$$.
* *Angrenzend* ist eine verwendete Abkürzung für "in **Range** 1"
# Schritt
diff --git a/rules/en/rules.md b/rules/en/rules.md
index 2ee69364..cf90ac3c 100644
--- a/rules/en/rules.md
+++ b/rules/en/rules.md
@@ -228,7 +228,7 @@ While you control an untapped permanent or have a playable card in hand
* **Ranges** have a origin
* **Ranges** have a radius `r`
* **Ranges** with the radius `r` include all **tiles** which are reachable with `r` **steps** from the origin, counting each second diagonal **step** twice
-* More precisely: a **tile** (x, y), where x and y are relative to the its origin (0, 0), is in the **range** r iff $$x > y$$ and $$abs(x) + floor(abs(y) / 2)$$ else $$abs(y) + floor(abs(x) / 2)$$
+* More precisely: a **tile** (x, y), where x and y are relative to the its origin (0, 0), is in the **range** r iff $$x > y$$ and $$abs(x) + floor(abs(y) / 2) <= r$$ else $$abs(y) + floor(abs(x) / 2) <= r$$
* *Adjacent* is a common Abbreviation for "in **range** 1"
## Step