Fixed wordle hard hint letter background color.

This commit is contained in:
ThePendulum 2024-07-05 00:36:41 +02:00
parent af9f15d11d
commit 5ac935cc95
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ function play(guess, context) {
const valid = prevLetters.every((letter, index) => { const valid = prevLetters.every((letter, index) => {
if (wordle.letters.get(letter) === false && !guessLetters.includes(letter)) { if (wordle.letters.get(letter) === false && !guessLetters.includes(letter)) {
context.sendMessage(`(Hard) Your guess must include the letter ${config.platform === 'irc' context.sendMessage(`(Hard) Your guess must include the letter ${config.platform === 'irc'
? style.bggreen(` ${letter} `) ? style.bgyellow(` ${letter} `)
: `${style.grey(style.code('['))}${style.orange(style.bold(style.code(letter)))}${style.grey(style.code(']'))}` : `${style.grey(style.code('['))}${style.orange(style.bold(style.code(letter)))}${style.grey(style.code(']'))}`
}.`, context.room.id); }.`, context.room.id);
@ -140,7 +140,7 @@ function play(guess, context) {
if (wordle.letters.get(letter) === true && letter === wordle.word[index] && letter !== guessLetters[index]) { if (wordle.letters.get(letter) === true && letter === wordle.word[index] && letter !== guessLetters[index]) {
context.sendMessage(`(Hard) Your guess must include the letter ${config.platform === 'irc' context.sendMessage(`(Hard) Your guess must include the letter ${config.platform === 'irc'
? style.bgyellow(` ${letter} `) ? style.bggreen(` ${letter} `)
: `${style.grey(style.code('['))}${style.green(style.bold(style.code(letter)))}${style.grey(style.code(']'))}` : `${style.grey(style.code('['))}${style.green(style.bold(style.code(letter)))}${style.grey(style.code(']'))}`
} in the correct position.`, context.room.id); } in the correct position.`, context.room.id);