add optimization

This commit is contained in:
Simon Vieille 2022-02-02 17:06:29 +01:00
parent 20609ef414
commit e01a830a7f
2 changed files with 41702 additions and 41702 deletions

File diff suppressed because it is too large Load diff

View file

@ -113,9 +113,9 @@ const startGame = async (meta, seed) => {
data = words.datas[words.seeds.indexOf(seed)]
}
games[meta.room] = new Game(data.word, allWords)
games[meta.room] = new Game(data, allWords)
const word = data.word
const word = data
const firstLetter = word.substr(0, 1)
const size = word.length