|
|
@@ -20,7 +20,7 @@ export function solveGreedy(target: string, allWords: string[], maxAttempts = 6)
|
|
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
|
const guess = attempt === 1 ? (STARTERS.find((w) => allWords.includes(w)) ?? allWords[0]) : candidates[0];
|
|
|
const fb = getFeedback(target, guess);
|
|
|
- steps.push({ guess, colors: fb.split('') });
|
|
|
+ steps.push({ guess });
|
|
|
if (fb === 'ggggg') return { attempts: attempt, steps };
|
|
|
|
|
|
candidates = candidates.filter((c) => matchesFeedback(c, guess, fb));
|