Public
Edited
Mar 2, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
words_map = new Map(words2.map(d => [d.word.toUpperCase(), +d.score]))
Insert cell
Insert cell
Insert cell
sel = d => table? (new Set(Array.from(words1[0].word, (c) => c)).has(d[1])?color.domain[0]: new Set(Array.from(table.word, (c) => c)).has(d[1])?color.domain[1]:color.domain[3]): (new Set(Array.from(words1[0].word, (c) => c)).has(d[1])?color.domain[0]:color.domain[3])

Insert cell
Insert cell
Insert cell
Insert cell
stroke.range[0]
Insert cell
words2 = wordsByHeuristic(matches)
Insert cell
Insert cell
words1 = wordsByHeuristic(matches, evaluateLetterOnlyHeuristic)
Insert cell
import { wordsByHeuristic, evaluateLetterOnlyHeuristic } from "@iamgrahamallen/wordle-solver-exploration"
Insert cell
Insert cell
Insert cell
da = FileAttachment("da.csv").csv()
Insert cell
nb = FileAttachment("nb.csv").csv()
Insert cell
nn = FileAttachment("nn.csv").csv()
Insert cell
tttt = (await fetch(host + lc + "/" + lc + "_5words.txt")
.then(response => response.text())
.then(txt => txt.trimEnd().split("\n"))).map(d => d.toUpperCase())
Insert cell
d3.csv("https://cadasa.github.io/app_list.csv")
Insert cell
lc = radios === "Føroyskt"? "fo": radios ==="Dansk"? "da": radios === "Norsk Bokmål"? "nb":radios === "Nynorsk"? "nn" : radios === "Tiếng Việt"? "vi": radios ==="Français"? "fr": radios ==="Español"? "es": "en"
Insert cell
Insert cell
Insert cell
fo_words = radios === "English"? words : tttt
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
vie_words = vie.map(d=>(d.word.toUpperCase()))
Insert cell
Insert cell
vie_words1 = wordsByHeuristic(vie_matches, evaluateLetterOnlyHeuristic)
Insert cell
vie_words2 = wordsByHeuristic(vie_matches)
Insert cell
vie_words_map1 = new Map(vie_words1.map(d => [d.word.toUpperCase(), +d.score]))
Insert cell
vie_words_map2 = new Map(vie_words2.map(d => [d.word.toUpperCase(), +d.score]))
Insert cell
vie_matches_score = vie_matches.map(word=> ({
word,
"score left": vie_words_map1.get(word),
"score right" : vie_words_map2.get(word)}))
Insert cell
vie_characters = vie_matches.flatMap(word => Array.from(word, (c, i) => [i+1, c]))
Insert cell
Insert cell
vie_letters = Array.from(vie_words1[0].word, (c) => c)
Insert cell
vie_sel = d => vie_table? (new Set(Array.from(vie_words1[0].word, (c) => c)).has(d[1])?color.domain[0]: new Set(Array.from(vie_table.word, (c) => c)).has(d[1])?color.domain[1]:color.domain[3]): (new Set(Array.from(vie_words1[0].word, (c) => c)).has(d[1])?color.domain[0]:color.domain[3])

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viechar.map(d=>(d.a)).join().toUpperCase().replace(/,/g, "")
Insert cell
viechar = FileAttachment("vie_char.csv").csv()
Insert cell
dic = FileAttachment("dic_list@1.csv").csv()
Insert cell
viewof searchdic = Inputs.search(dic, {submit: true, label: "Dictionary:", datalist: dic.map(d=>(d.Language))})
Insert cell
Insert cell
dic2 = dic.map(d => ([d.Language+ " "+d[" Status"], d[" Status"], +d[" Words"].replace(" (", "").replace(" words)", "")]))
Insert cell
Insert cell
Insert cell
Insert cell
flag = code => html`<img src="https://raw.githubusercontent.com/yammadev/flag-icons/v3.0.0/svg/${code}.svg" style="background: #6d6359; width: 15.5px; height: 11.5px; max-height: calc(1 * (100vw - 35px));">`
Insert cell
import {checkbox} from "@jashkenas/inputs"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more