Skip to content

Commit f4b6968

Browse files
committed
games: Add ODS8 for Scrabble
1 parent de61bae commit f4b6968

3 files changed

Lines changed: 411441 additions & 0 deletions

File tree

src/ps/games/scrabble/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Clabbers from '@/static/words/clabbers.json';
22
import CSW19 from '@/static/words/csw19.json';
33
import CSW21 from '@/static/words/csw21.json';
4+
import ODS8 from '@/static/words/ods8.json';
45

56
import type { BaseBoard as BaseBoardType } from '@/ps/games/scrabble/types';
67

@@ -96,19 +97,22 @@ export enum DIRECTION {
9697
export enum DICTIONARY {
9798
CSW19 = 'csw19',
9899
CSW21 = 'csw21',
100+
ODS8 = 'ods8',
99101
CLABBERS = 'clabbers',
100102
}
101103

102104
export const Dictionaries = {
103105
[DICTIONARY.CSW19]: CSW19,
104106
[DICTIONARY.CSW21]: CSW21,
105107
[DICTIONARY.CLABBERS]: Clabbers,
108+
[DICTIONARY.ODS8]: ODS8,
106109
// TypeScript gets its pants in a twirl here with JSON stuff
107110
} as unknown as Record<DICTIONARY, Record<string, boolean>>;
108111

109112
export enum ScrabbleMods {
110113
CSW19 = 'csw19',
111114
CSW21 = 'csw21',
115+
ODS8 = 'ods8',
112116
CLABBERS = 'clabbers',
113117
POKEMON = 'pokemon',
114118
CRAZYMONS = 'crazymons',

src/ps/games/scrabble/mods.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export const ScrabbleModData: Record<ScrabbleMods, { name: string; dict: DICTION
1111
name: 'CSW21',
1212
dict: DICTIONARY.CSW21,
1313
},
14+
[ScrabbleMods.ODS8]: {
15+
name: 'ODS8',
16+
dict: DICTIONARY.ODS8,
17+
aliases: ['ods', 'french', 'francais', 'franais'],
18+
},
1419
[ScrabbleMods.CLABBERS]: {
1520
name: 'Clabbers',
1621
dict: DICTIONARY.CLABBERS,

0 commit comments

Comments
 (0)