101 lines
2.4 KiB
JavaScript
101 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: "fr",
|
|
name: "French",
|
|
|
|
/*
|
|
102 jetons
|
|
- 0 point : Joker *2
|
|
- 1 point : E *15, A *9, I *8, N *6, O *6, R *6, S *6, T *6, U *6, L *5
|
|
- 2 points : D *3, M *3, G *2
|
|
- 3 points : B *2, C *2, P *2
|
|
- 4 points : F *2, H *2, V *2
|
|
- 8 points : J *1, Q *1
|
|
- 10 points : K *1, W *1, X *1, Y *1, Z *1
|
|
*/
|
|
|
|
bag: [
|
|
" ", " ", // Jokers
|
|
"E", "E", "E", "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",
|
|
"N", "N", "N", "N", "N", "N",
|
|
"O", "O", "O", "O", "O", "O",
|
|
"R", "R", "R", "R", "R", "R",
|
|
"S", "S", "S", "S", "S", "S",
|
|
"T", "T", "T", "T", "T", "T",
|
|
"U", "U", "U", "U", "U", "U",
|
|
"L", "L", "L", "L", "L",
|
|
"D", "D", "D",
|
|
"M", "M", "M",
|
|
"G", "G",
|
|
"B", "B",
|
|
"C", "C",
|
|
"P", "P",
|
|
"F", "F",
|
|
"H", "H",
|
|
"V", "V",
|
|
"J",
|
|
"Q",
|
|
"K",
|
|
"W",
|
|
"X",
|
|
"Y",
|
|
"Z"
|
|
],
|
|
|
|
letterValues: {
|
|
" ": 0,
|
|
E: 1,
|
|
A: 1,
|
|
I: 1,
|
|
N: 1,
|
|
O: 1,
|
|
R: 1,
|
|
S: 1,
|
|
T: 1,
|
|
U: 1,
|
|
L: 1,
|
|
D: 2,
|
|
M: 2,
|
|
G: 2,
|
|
B: 3,
|
|
C: 3,
|
|
P: 3,
|
|
F: 4,
|
|
H: 4,
|
|
V: 4,
|
|
J: 8,
|
|
Q: 8,
|
|
K: 10,
|
|
W: 10,
|
|
X: 10,
|
|
Y: 10,
|
|
Z: 10
|
|
}
|
|
};
|