Update words.ts

This commit is contained in:
Christoph Stahl 2022-01-29 22:06:54 +00:00
parent 7cd4195233
commit cf5c8ec933

View file

@ -14,11 +14,7 @@ export const isWinningWord = (word: string) => {
export const getWordOfDay = () => {
// January 1, 2022 Game Epoch
const epochMs = 1641013200000
const now = Date.now()
const msInDay = 86400000
const index = Math.floor((now - epochMs) / msInDay)
return {
solution: WORDS[0].toUpperCase(),
solutionIndex: 0,