From: Laurent Mazet
Date: Sat, 24 Apr 2021 08:59:57 +0000 (+0200)
Subject: new board can be rectangular and rack length can be changed
X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=f817c0b5abd2042f46f46eb04b22ae4bb0a01c30;p=trivabble.git
new board can be rectangular and rack length can be changed
---
diff --git a/l10n/po/fr/trivabble.po b/l10n/po/fr/trivabble.po
index b8114ce..a626f20 100644
--- a/l10n/po/fr/trivabble.po
+++ b/l10n/po/fr/trivabble.po
@@ -166,11 +166,11 @@ msgstr "Ãtes-vous sûr·e de vouloir de changer la langue du plateau à '{0}' ?
msgid "Board language:"
msgstr "Langue du plateau :"
-msgid "You changed the board to {0}x{0} for language {1}"
-msgstr "Vous avez changé le plateau pour {0}x{0} en {1}"
+msgid "You changed the board to {0} for language {1}"
+msgstr "Vous avez changé le plateau pour {0} en {1}"
-msgid "{0} changed the board to {1}x{1} for language {2}"
-msgstr "{0} a changé le plateau pour {1}x{1} en {2}"
+msgid "{0} changed the board to {1} for language {2}"
+msgstr "{0} a changé le plateau pour {1} en {2}"
msgid "Settings"
msgstr "Paramètres"
@@ -262,9 +262,10 @@ msgstr "Chronométrer la partie"
msgid "To measure playing time, activate the timer."
msgstr "Pour mesurer les temps de jeu, activez le chronomètre."
-msgid "Board size:"
-msgstr "Taille du plateau"
-
-msgid "Are you sure you want to change board to {0}x{0}? This will put all the tiles back in the bag and start another game."
-msgstr "Ãtes-vous sûr·e de vouloir de changer la taille du plateau à {0}x{0} ? Cela remettra toutes les lettres du jeu dans le sac et commencera une nouvelle partie."
+msgid "Board label:"
+msgstr "Type du plateau"
+msgid "Are you sure you want to change board to {0}? This will put all the tiles back in the bag and start another game."
+msgstr "Ãtes-vous sûr·e de vouloir de changer le type du plateau à {0} ? Cela remettra toutes les lettres du jeu dans le sac et commencera une nouvelle partie."
+msgid "Can't find board '{0}'. Change board or start a new game."
+msgstr "Impossible de trouver le plateau de type '{0}'. Changez de type de plateau ou démarrez une nouvelle partie."
diff --git a/l10n/pot/trivabble.pot b/l10n/pot/trivabble.pot
index 4714921..a2b2f2b 100644
--- a/l10n/pot/trivabble.pot
+++ b/l10n/pot/trivabble.pot
@@ -172,10 +172,10 @@ msgstr ""
msgid "Board language:"
msgstr ""
-msgid "You changed the board to {0}x{0} for language {1}"
+msgid "You changed the board to {0} for language {1}"
msgstr ""
-msgid "{0} changed the board to {1}x{1} for language {2}"
+msgid "{0} changed the board to {1} for language {2}"
msgstr ""
msgid "Settings"
@@ -267,8 +267,11 @@ msgstr ""
msgid "To measure playing time, activate the timer."
msgstr ""
-msgid "Board size:"
+msgid "Board label:"
msgstr ""
-msgid "Are you sure you want to change board to {0}x{0}? This will put all the tiles back in the bag and start another game."
+msgid "Are you sure you want to change board to {0}? This will put all the tiles back in the bag and start another game."
+msgstr ""
+
+msgid "Can't find board '{0}'. Change board or start a new game."
msgstr ""
diff --git a/public/boards.js b/public/boards.js
index 0eb4ac8..62dad83 100644
--- a/public/boards.js
+++ b/public/boards.js
@@ -1,5 +1,6 @@
window.BoardList = {
- "8x8": {
+ "8x8-7": {
+ factor: 0.25,
TW: [
"A1", "A8",
"H1", "H8"
@@ -27,14 +28,16 @@ window.BoardList = {
"D4"
]
},
- "15x15": {
+ "15x15-7": {
+ factor: 1,
TW: ["A1", "A8", "A15", "H1", "H15", "O1", "O8", "O15"],
DW: ["B2", "B14", "C3", "C13", "D4", "D12", "E5", "E11", "K5", "K11", "L4", "L12", "M3", "M13", "N2", "N14"],
TL: ["B6", "B10", "F2", "F6", "F10", "F14", "J2", "J6", "J10", "J14", "N6", "N10"],
DL: ["A4", "A12", "C7", "C9", "D1", "D8", "D15", "G3", "G7", "G9", "G13", "H4", "H12", "I3", "I7", "I9", "I13", "L1", "L8", "L15", "M7", "M9", "O4", "O11"],
CS: ["H8"]
},
- "22x22": {
+ "22x22-7": {
+ factor: 2,
TW: [
"A1", "A8", "A15", "A22",
"H1", "H8", "H15", "H22",
diff --git a/public/index.html b/public/index.html
index 6d4244e..6ba07e0 100644
--- a/public/index.html
+++ b/public/index.html
@@ -47,12 +47,10 @@
-
-
-