trivabble/server/lang/en.js

102 lines
2.4 KiB
JavaScript

/**
* Copyright (C) 2020 Laurent Mazet <mazet@softndesign.org>
*
* @licstart
* This file is part of Trivabble.
*
* Trivabble is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License (GNU AGPL)
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* Trivabble is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Trivabble. If not, see <http://www.gnu.org/licenses/>.
* @licend
*
* @source: https://trivabble.1s.fr/
* @source: https://gitlab.com/raphj/trivabble/
*/
module.exports = {
code: "en",
name: "English",
/*
100 jetons:
- 0 point: Blank *2
- 1 point : E *12, A *9, I *9, O *8, R *6, N *6, T *6, L *4, S *4, U *4
- 2 points : D *4, G *3
- 3 points : B *2, C *2, M *2, P *2
- 4 points : F *2, H *2, V *2, W *2, Y *2
- 5 points : K *1
- 8 points : J *1, X *1
- 10 points : Q *1, Z *1
*/
bag: [
" ", " ", // Blanks
"E", "E", "E", "E", "E", "E", "E", "E", "E", "E", "E", "E",
"A", "A", "A", "A", "A", "A", "A", "A", "A",
"I", "I", "I", "I", "I", "I", "I", "I", "I",
"O", "O", "O", "O", "O", "O", "O", "O",
"R", "R", "R", "R", "R", "R",
"N", "N", "N", "N", "N", "N",
"T", "T", "T", "T", "T", "T",
"L", "L", "L", "L",
"S", "S", "S", "S",
"U", "U", "U", "U",
"D", "D", "D", "D",
"G", "G", "G",
"B", "B",
"C", "C",
"M", "M",
"P", "P",
"F", "F",
"H", "H",
"V", "V",
"W", "W",
"Y", "Y",
"K",
"J",
"X",
"Q",
"Z"
],
letterValues: {
" ": 0,
E: 1,
A: 1,
I: 1,
O: 1,
R: 1,
N: 1,
T: 1,
L: 1,
S: 1,
U: 1,
D: 2,
G: 2,
B: 3,
C: 3,
M: 3,
P: 3,
F: 4,
H: 4,
V: 4,
W: 4,
Y: 4,
K: 5,
J: 8,
X: 8,
Q: 10,
Z: 10
}
};