Everyone loves sitcoms. They are a great way to relax and laugh along with your favorite characters. So today you’ll test your knowledge of the characters in your favorite sitcoms. How much can you remember and how much can you (still) name?
There are 23 main characters in the following hidden object picture: Someone from every sitcom is there.
There is only one rule for this quiz:
” + button code + “
“); counter++; }); // When the user enters a tip $(“.imgguesser”).on(“input”, function () { var number = $(this).attr(“name”) – 1 ;var solution = images[number]; var guess = $(this).val(); var field = $(this); $(solution[3]).each(function (key, name variations) { // For each player… $(name variations).each(function (k, v) { // For each spelling… if (check_guess(v, guess , field, number, solution, name variants) == false) { return false; } }) }); }); // If user $(“.disabled”).click(function () { $(this).prop(“disabled”, true); // Disable button var solution = images[$(this).attr(“number”) – 1]; var player list = []; $(solution[1]).each(function (k, v) { // Color the missing players pink if ($(‘p.allguesses:contains(‘ + v[0] + ‘)’).length > 0) { // find the corresponding TV program spieleliste.push(v[0] + ” (” + tvShows[k] + “)”); } else { playerlist.push(“” + v[0] + ” (” + tvShows[k] + “)” + ““); } }); playerlist = playerlist.join(“, “); $(“input[name=”” + $(this).attr(“number”) + “”]”).prop(“disabled”, true); $(“input[name=”” + $(this).attr(“number”) + “”]”).css(“border”, “2px solid #F40F97”); var guess = $(“.guesses-” + $(this).attr(“number”)).length; $(“
You guessed it from the solution[1].length + ” Guess the characters. These are all the characters on the hidden object image:
” + player list + “
“).insertAfter(this); game_finished(); }); // FUNCTION: Check the guess function check_guess(value, guess, field, number, solution, name variations) { var default name = name variations[0]; // We take the first one as the default guess = guess.replace(“&”, “and”).replace(“+”, “and”); value = value.replace(“&”, “en”).replace(“+”, “en”); if (guess.toLowerCase() == value.toLowerCase() && (guess.length == value.length)) { // if ((levenshtein(guess.toLowerCase(), value.toLowerCase()) <= 1) && (guess.length == value.length)) { // Richtig geraten field.val(""); wonpoints++; // Balken updaten var breiteGuessed = width / solution[1].length * (solution[1].length - solution[3].length + 1); $("#counter-guessed-" + field.attr("name")).css("width", breiteGuessed); $("#counter-open-" + field.attr("name")).css("width", width - breiteGuessed); // Guess aus dem Array löschen images[number][3] = images[number][3].filter(e => e !== name variations); // find the corresponding TV program with the index of the default name in the name variations array // get the index of images[1] for the default name, look only at the first value in each image[1] array var tvShow = tvShows[$.inArray(standardname, images[number][1].map(function (x) { return x[0]; }))]; $(“
” + default name + ” (” + tvShow + “)” + “
“).insertAfter(field); // If everyone guesses correctly: if (solution[3].length < 1) { field.prop("disabled", true); field.css("border", "2px solid #7bd400"); var button = $("button[number="" + (number + 1) + ""]"); button.prop("disabled", true); $(button).after("
Perfect! You guessed all the characters.”); game_finished(); } return false; // Break out of any loop } else { return true; } } // FUNCTION: Check if the game is finished function game_finished() { var finished = true ; $(“.imgguesser”).each(function () { if ($(this).prop(‘disabled’) == false) { completed = false; return; } }); if (completed) { var totalplayers = 0; $(images).each(function () { totalplayers += $(this)[1].length; }); // Custom result text if (wonpoints < 6) { var result text = "Very weak. It's worth adjusting the TV every now and then."; } else if (wonpoints < 12) { var result text = "At least you know a few characters."; } else if (wonpoints < 18) { var result text = "Keep up the good work! Not much remains until you recognize everyone."; } else { var result text = "Good job! You've earned the title 'Sitcom Junkie'!"; } $("#outputtext").html("
Your result
You have ” + points won + ” of total ” + total players + ” characters guess. ” + result text + “
“); } } // FUNCTION: Check matches between two strings, function levenshtein(str1, str2) { var m = str1.length, n = str2.length, d = [], i, j; if (!m) returns n; if (!n) return m; for (i = 0; i <= m; i++) d[i] = [i]; for (j = 0; j <= n; j++) d[0][j] =j; for (j = 1; j <= n; j++) { for (i = 1; i <= m; i++) { if (str1[i - 1] ===str2[j - 1]) { D[i][j] = d[i - 1][j - 1]; } else {d[i][j] = Math.min(d[i - 1][j]D[i][j - 1]D[i - 1][j - 1]) + 1; } } } return d[m][n]; } });
Your result
To see the result, all characters must have guessed or solved the quiz.
Source: Watson

I am Dawid Malan, a news reporter for 24 Instant News. I specialize in celebrity and entertainment news, writing stories that capture the attention of readers from all walks of life. My work has been featured in some of the world’s leading publications and I am passionate about delivering quality content to my readers.