diff --git a/src/lib/solver.rs b/src/lib/solver.rs index c69c5c8..1da1117 100644 --- a/src/lib/solver.rs +++ b/src/lib/solver.rs @@ -75,7 +75,7 @@ impl Solver { - new_possible_solutions.equal_likelieness_entropy(); if new_possible_solutions.len() == 0 { - return Err("Solution space is empty".to_string()); + return Err("Applying this guess would empty the solution space!".to_string()); } self.possible_solutions = new_possible_solutions; diff --git a/web/src/App.svelte b/web/src/App.svelte index a907521..b792ade 100644 --- a/web/src/App.svelte +++ b/web/src/App.svelte @@ -1,64 +1,80 @@ -
-
-

- Wordle Solver -

+
+
+

Wordle Solver

-

- Solution-space: {solution_space} · {solution_space_uncertainty.toFixed(2)}bits -

+

SolutionSpace

-
- {#each guesses as g,i (g)} - + {#each guesses as g, i (g)} + - {/each} + info_gained={infos_gained[i]} + /> + {/each} +
+ +

+ Type letters · ← → navigate · Space cycle color · Backspace delete · + Enter apply +

- - -

- Type letters · ← → navigate · Space cycle color · Backspace delete · Enter apply -

-
diff --git a/web/src/components/SolverOutput.svelte b/web/src/components/SolverOutput.svelte new file mode 100644 index 0000000..0fbba99 --- /dev/null +++ b/web/src/components/SolverOutput.svelte @@ -0,0 +1,2 @@ + diff --git a/web/src/components/WordleLine.svelte b/web/src/components/WordleLine.svelte index 94e275f..78f90df 100644 --- a/web/src/components/WordleLine.svelte +++ b/web/src/components/WordleLine.svelte @@ -1,15 +1,23 @@