mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-02-04 10:54:44 -05:00
added some more words to the "first letter" edge case
This commit is contained in:
@@ -50,17 +50,24 @@
|
|||||||
correctBook?.section === "General Epistles") &&
|
correctBook?.section === "General Epistles") &&
|
||||||
correctBook.name[0] === "1";
|
correctBook.name[0] === "1";
|
||||||
const guessIsEpistlesWithNumber =
|
const guessIsEpistlesWithNumber =
|
||||||
(guess.book.section === "Pauline Epistles" ||
|
(guess.book.section === "Pauline Epistles" ||
|
||||||
guess.book.section === "General Epistles") &&
|
guess.book.section === "General Epistles") &&
|
||||||
guess.book.name[0] === "1";
|
guess.book.name[0] === "1";
|
||||||
|
|
||||||
if (
|
if (
|
||||||
correctIsEpistlesWithNumber &&
|
correctIsEpistlesWithNumber &&
|
||||||
guessIsEpistlesWithNumber &&
|
guessIsEpistlesWithNumber &&
|
||||||
guess.firstLetterMatch
|
guess.firstLetterMatch
|
||||||
) {
|
) {
|
||||||
const words = ["Exactly", "Right", "Yes", "Naturally"];
|
const words = [
|
||||||
return words[Math.floor(Math.random() * words.length)]; // Special wordplay case
|
"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
|
return getFirstLetter(guess.book.name); // Normal case: show first letter, ignoring numbers
|
||||||
case "testament":
|
case "testament":
|
||||||
|
|||||||
Reference in New Issue
Block a user