added some more words to the "first letter" edge case

This commit is contained in:
George Powell
2026-02-02 01:32:17 -05:00
parent f7ec0742e1
commit 5b9b2f76f4

View File

@@ -50,17 +50,24 @@
correctBook?.section === "General Epistles") &&
correctBook.name[0] === "1";
const guessIsEpistlesWithNumber =
(guess.book.section === "Pauline Epistles" ||
guess.book.section === "General Epistles") &&
guess.book.name[0] === "1";
(guess.book.section === "Pauline Epistles" ||
guess.book.section === "General Epistles") &&
guess.book.name[0] === "1";
if (
correctIsEpistlesWithNumber &&
guessIsEpistlesWithNumber &&
guess.firstLetterMatch
) {
const words = ["Exactly", "Right", "Yes", "Naturally"];
return words[Math.floor(Math.random() * words.length)]; // Special wordplay case
const words = [
"Exactly",
"Right",
"Yes",
"Naturally",
"Of course",
"Sure",
];
return words[Math.floor(Math.random() * words.length)]; // Special wordplay case
}
return getFirstLetter(guess.book.name); // Normal case: show first letter, ignoring numbers
case "testament":