Public
HTTP (deprecated)
Readme

wordGame

A wordgame inspired by TextTwist. Custom games can be created by appending the available letters to the url.

https://jdan-esmtown.web.val.run/nsetyr

image.png

The dictionary is populated from the following script:

import { blob } from "https://esm.town/v/std/blob?v=12"; const dictionaryUrls = [ "https://www.freescrabbledictionary.com/word-lists/3-letter-words/3-letter-words.json", "https://www.freescrabbledictionary.com/word-lists/4-letter-words/4-letter-words.json", "https://www.freescrabbledictionary.com/word-lists/5-letter-words/5-letter-words.json", "https://www.freescrabbledictionary.com/word-lists/6-letter-words/6-letter-words.json", "https://www.freescrabbledictionary.com/word-lists/7-letter-words/7-letter-words.json", ]; const allWords = await Promise.all( dictionaryUrls.map(async (url) => { const res = await fetch(url); const words = await res.json(); return words.map((entry) => entry.word); }), ); blob.setJSON("words", allWords.flat());
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
jdan-esmtown.web.val.run
May 19, 2024