How good are you at geography? If you don’t know the answer to this question, you’ve come to the right place. And today it is explicitly about countries in Europe. And this is how it works:
But enough theory, let’s get to practice!
/******** HIERHIN DATENSATZ KOPIEREN ********/ ['/imgdb/93ce/void;NR;JPEG/2986855266916617', '/imgdb/c1e4/Qx,A,0,0,999,997,416,415,166,166;Ani/533907997690377', 'https://www.watson.ch/imgdb/afd1/void;NR;JPEG/3383242504387609', ['Schweiz', 'CH']], ['/imgdb/1821/void;NR;JPEG/7415463216711392', '/imgdb/4a6c/Qx,A,0,0,1000,1000,416,416,166,166;Ani/6627198081358912', 'https://www.watson.ch/imgdb/a259/void;NR;JPEG/8884984884986366', ['Griechenland', 'Grichenland']], ['/imgdb/aa26/void;NR;JPEG/718951529670693', '/imgdb/21de/Qx,A,0,0,1000,1000,416,416,166,166;Ani/3403715548743806', 'https://www.watson.ch/imgdb/5a52/void;NR;JPEG/1878778508638108', ['Finnland', 'Finland']], ['/imgdb/daa8/void;NR;JPEG/7920451845284199', '/imgdb/cf79/Qx,A,0,0,1000,1000,416,416,166,166;Ani/4048964857065760', 'https://www.watson.ch/imgdb/12d9/void;NR;JPEG/731575105998961', ['Niederlande', 'Niderlande', 'Holland']], ['/imgdb/d1f6/void;NR;JPEG/5116116290897340', '/imgdb/2f62/Qx,A,0,0,1000,1000,416,416,166,166;Ani/556010013566007', 'https://www.watson.ch/imgdb/fafa/void;NR;JPEG/3988600019766196', ['Italien']], ['/imgdb/a89b/void;NR;JPEG/5279350057388387', '/imgdb/1763/Qx,A,0,0,1000,1000,416,416,166,166;Ani/4553162823407569', 'https://www.watson.ch/imgdb/ae17/void;NR;JPEG/6137576360143189', ['Polen']], ['/imgdb/8225/void;NR;JPEG/4953440481439461', '/imgdb/c7b0/Qx,A,0,0,1000,1000,416,416,166,166;Ani/7023053790252640', 'https://www.watson.ch/imgdb/306a/void;NR;JPEG/6617089200927325', ['Island']], ['/imgdb/8aa4/void;NR;JPEG/1204407722955086', '/imgdb/2e18/Qx,A,0,0,1000,1000,416,416,166,166;Ani/526900763185597', 'https://www.watson.ch/imgdb/d69e/void;NR;JPEG/3274233889320744', ['Österreich', 'Östereich']], ['/imgdb/8eca/void;NR;JPEG/2363413199894675', '/imgdb/c4a6/Qx,A,0,0,1000,1000,416,416,166,166;Ani/8652471399174225', 'https://www.watson.ch/imgdb/7a27/void;NR;JPEG/5630061266798874', ['Bosnien und Herzegowina', 'Bosnien', 'Herzegowina']], ['/imgdb/774d/void;NR;JPEG/4965045968453383', '/imgdb/89b1/Qx,A,0,0,1000,1000,416,416,166,166;Ani/6429289603855593', 'https://www.watson.ch/imgdb/354f/void;NR;JPEG/3415961967209642', ['Portugal']] /********* ENDE DATENSATZ ************/ ];
$(document).ready(function () {
var anzversuche = 3; var wonpoints = 0; var counter = 1; var width = $("#images").width(); $(images).each(function (key, value) { // Liste doppeln images[key].push($(this)[1]);
// HTML-Elemente generieren var image="
" + counter + '. Logo: Was suchen wir?
';
var buttoncode="
Remaining attempts: ” + no attempts + “
” + button code + “
“); counter++; }); // When the user enters a guess $(“.imgguesser”).on(‘keydown’, function (e) { if (e.keyCode === 13 || e.which = == 13) { e.preventDefault(); var tries = $(this).attr(“try”);if (try > 0) { var number = $(this).attr(“name”) – 1; $(this).attr(“try”, try – 1); $(“.try[number=”” + (number + 1) + “”]”).html(“Remaining attempts: ” + (attempts – 1)); var solution = images[number]; var guess = $(this).val(); var field = $(this); var state = $(“.solve[number=”” + (number + 1) + “”]”).attr(“state”); $(solution[3]).each(function (key, name variations) { // For each player… if (check_guess(name variations, guess, field, number, solution, solution[3], state) == false) { return false; } }); // trying to survive? console.log(try); if (try <= 1) { lost($(".aufloesen[number="" + (number + 1) + ""]")); } } } }); // Wenn der User einen Tipp eingibt $(".tippabgeben").on('click', function (e) { var number = $(this).attr("number") - 1; var $inputField = $(".imgguesser[name="" + $(this).attr("number') + "']"); var tries = $inputField.attr("tries"); console.log(tries) if (tries > 0) { $inputField.attr(“trying”, trying – 1); $(“.try[number=”” + (number + 1) + “”]”).html(“Remaining attempts: ” + (attempts – 1)); var solution = images[number]; var guess = $inputField.val(); var field = $inputfield; var state = $(“.solve[number=”” + (number + 1) + “”]”).attr(“state”); $(solution[3]).each(function (key, name variations) { // For each player… if (check_guess(name variations, guess, field, number, solution, solution[3], state) == false) { return false; } }); // trying to survive? console.log(try); if (trying <= 1) { lost($(".resolve[number="" + (number + 1) + ""]")); } } }); // button click $(".resolve").click(function () { var number = $(this).attr("number") - 1; if ($(this ) .attr('state') == 0) { // give second image var solution = images[number]; $(".tipslist[number="" + (number + 1) + ""]").html('
1st Tip:
‘); $(this).attr(‘state’, 1); $(this).html(‘View original summary’); $(“input[name=”” + (number + 1) + “”]”).focus(); } else if ($(this).attr(‘state’) == 1) { // show second tip // $(“.tiplist[number=”” + (number + 1) + “”]”).add(‘
2nd Tip: ‘ + images[number][2] + ‘
‘); $(“.tipslist[number=”” + (number + 1) + “”]”).html(‘
1st tip:
‘); $(this).attr(‘state’, 2); $(“input[name=”” + (number + 1) + “”]”).focus(); $(this).html(‘Give up’); } else { lost($(this)); } }); // Function: Abandoned or exhausted attempts function lost(elm) { elm .prop(“disabled”, true); // disable button var solution = images[elm.attr(“number”) – 1]; $(“input[name=”” + elm.attr(“number”) + “”]”).prop(“disabled”, true); $(“input[name=”” + elm.attr(“number”) + “”]”).css(“border”, “2px solid #F40F97”); var guessed = $(“.guess-” + elm.attr(“number”)).length; // $(“
Solution
“).insertAfter(eep); $(“
Solution:
” + solutions[3][0] + “
“).insertAfter(elm); game_finished(); } // FUNCTION: check guess function check_guess(value, guess, field, number, solution, name variations, state) { var width = $(“#images”).width ( ) ; var default link = name variations[0]; // Exceptions //guess = guess.replace(/hcd/ig, “ACRFRIqLxzdDfeEZ”).replace(/barce/ig, “EwM676Ut2dLhwBSQ”).replace(/nice/ig, “NWgCzTfgnFNpcWkY”).replace(/bayer / ig, “nCpVIBuHqIoHWPOS”).replace(/bayern/ig, “pjGkuINlfQtUplNP”); //value = value.replace(/hcd/ig, “ACRFRIqLxzdDfeEZ”).replace(/barce/ig, “EwM676Ut2dLhwBSQ”).replace(/nice/ig, “NWgCzTfgnFNpcWkY”).replace(/bayer /ig, ” nCpVIBuHqIoHWPOS”).replace(/bayern/ig, “pjGkuINlfQtUplNP”); if (levenshtein(guess.toLowerCase(), value.toLowerCase()) <= 1) { // Richtig geraten field.val(""); // Guess aus dem Array löschen images[number][3] = images[number][3].filter(e => e !== name variations); // $(““).insertAfter(field); // Distribute points and adjust tips (if necessary) if (state == 0) { // Free guess: 2 points wonpoints += 3; } else if (state == 1) { / / With image tip wonpoints += 2; } else { // With text tip wonpoints += 1; } // If all guesses are correct: field.prop(“disabled”, true); field.css(“border” ,” 2px solid #7bd400″); var button = $(“button[number=”” + (number + 1) + “”]”); button.prop(“disabled”, true); // get $(“button[number=”” + (number + 1) + “”]”); but not the one with class bet var button = $(“button[number=”” + (number + 1) + “”]”).not(“.tap”); $(button).after(“
Perfect!”); $(“.try[number=”” + (number + 1) + “”]”).hide(); game_finished(); return false; // Break each loop } else { field.css(“border”, “2px solid #F40F97″); field.val(”); return true ; } } // FUNCTION: Check if the game is over function game_finished() { var done = true; $(“.imgguesser”).each(function () { if ($(this).prop(‘disabled’ ) == false) { finished = false; return; } }); if (done) { var totalplayers = 0; totalplayers = images.length * 3; var ranking = [
/******** HIERHIN RANKING KOPIEREN ********/
[‘6’, 30, ‘Perfekt! Gratulation zu dieser ausgezeichneten Leistung.’],
[‘5,5’, 25, ‘Sehr gut! Da kennt sich jemand wirklich aus.’],
[‘5’, 20, ‘Gut gemacht! Mit einer 5 darf man schon angeben.’],
[‘4,5’, 15, ‘Damit kann man doch zufrieden sein.’],
[‘4’, 12, ‘Egal, alles mit 4 und höher reicht.’],
[‘45049’, 8, ‘Leider knapp an der rettenden 4 vorbeigeschramt.’],
[‘2’, 5, ‘Da kann leider niemand stolz sein.’],
[‘1’, 0, ‘Uff! Das war wohl leider nichts.’]
/******** END RANK ********/ ]; var array text = “”; $(rank).each(function (k, v) { if (points won >= v[1]) { ranking text = “Your grade is ” + v[0] + “. You have ” + points won + ” on a total of ” +totalplayers + ” possible points fetched. ” + v[2]; return false; } }) $(“#outputtext”).html(“
” + ranking text + “
“); } } // FUNCTION: Check for matches between two strings function levenshtein(str1, str2) { var m = str1.length, n = str2.length, d = [],i,j; if (!m) returns n; if (!n) returns 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]) {ie[i][j] = ie[i - 1][j - 1]; } else {ie[i][j] = Math.min(ie[i - 1][j]i.e[i][j - 1]i.e[i - 1][j - 1]) + 1; } } } return d[m][n]; } // FUNCTION: edit tips function create_pixler(number) { var list = images[number][1]; var position = $(".solve[number="" + (number + 1) + ""]"); var player list = []; $(list).each(function (k, v) { // Pixelate the missing teams as ($('p:contains(' + v[0] + ')').length == 0) { var pixeled = ""; var pixel counter = 0; for (var i = 0; i < v[0].length; i++) { if (v[0].charAt(i) == " ") { // If it's a space, render normal pixelated += " "; } else { if (pixlcounter == 2) { pixelated += v[0].charAt(i); pixel counter = 0; } else { pixelated += "_"; pixelcounter++; } } } playerlist.push(pixeled); } }); var team list = ""; $(playerlist).elk(function (k, v) { teamlist += "
” + v + “
“; }); if (teamlist != “”) { $(“.tiplist[number=”” + (number + 1) + “”]”).html(“
You are still missing these solutions:
” + teamlist); } else { $(“.tiplist[number=”” + (number + 1) + “”]”).html(“”); } } });
Each quiz requires you to guess everything or solve the question to see the result.
Soource :Watson
I am Amelia James, a passionate journalist with a deep-rooted interest in current affairs. I have more than five years of experience in the media industry, working both as an author and editor for 24 Instant News. My main focus lies in international news, particularly regional conflicts and political issues around the world.
On the same day of the terrorist attack on the Krokus City Hall in Moscow,…
class="sc-cffd1e67-0 iQNQmc">1/4Residents of Tenerife have had enough of noisy and dirty tourists.It's too loud, the…
class="sc-cffd1e67-0 iQNQmc">1/7Packing his things in Munich in the summer: Thomas Tuchel.After just over a year,…
At least seven people have been killed and 57 injured in severe earthquakes in the…
The American space agency NASA would establish a uniform lunar time on behalf of the…
class="sc-cffd1e67-0 iQNQmc">1/8Bode Obwegeser was surprised by the earthquake while he was sleeping. “It was a…