diff --git a/web/.gitignore b/web/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/web/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..ad57122 --- /dev/null +++ b/web/index.html @@ -0,0 +1,16 @@ + + + +
+ + ++ Use Wordle-Answers: + { + if (e.currentTarget) { + e.currentTarget.blur(); + } + }} + onchange={reset} + /> +
+ ++ {#await solution_space} + loading + {:then s} + Solution-space: {s.size}, Uncertainty: {s.uncertainty.toFixed( + 2, + )}bits + {:catch e} + {e} + {/await} +
+ ++ Type letters · ← → navigate · Space cycle color · Backspace + delete · Enter apply · Shift+Enter solve · Escape abort + solver · Ctrl+Esc reset +
+ {/if} + +| + | Word | ++ | + | + |
|---|---|---|---|---|
| #{i + 1} | +{s.word} | ++ {(s.solution_probability * 100).toFixed(2) + "%"} + | ++ {s.expected_information_gained.toFixed(2)} bits + | ++ {s.expected_score_after_guess.toFixed(3)} + | +