{"id":315,"date":"2025-07-29T00:56:14","date_gmt":"2025-07-29T00:56:14","guid":{"rendered":"https:\/\/insaatsirketleri.com.tr\/en\/?p=315"},"modified":"2025-07-29T01:15:09","modified_gmt":"2025-07-29T01:15:09","slug":"be-a-millionaire","status":"publish","type":"post","link":"https:\/\/insaatsirketleri.com.tr\/en\/be-a-millionaire\/","title":{"rendered":"Be a Millionaire"},"content":{"rendered":"\n<p><\/p>\n\n\n\n <script src=\"https:\/\/cdn.tailwindcss.com\"><\/script>\n    <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;600;700&#038;display=swap\" rel=\"stylesheet\">\n    <style>\n        \/* Bu stiller sadece oyun konteynerini ve i\u00e7indeki \u00f6\u011feleri etkileyecek \u015fekilde tasarland\u0131 *\/\n        .millionaire-game-wrapper {\n            font-family: 'Inter', sans-serif;\n            background: linear-gradient(to bottom, #1a202c, #2d3748); \/* Koyu degrade arka plan *\/\n            color: #e2e8f0; \/* A\u00e7\u0131k gri metin *\/\n            display: flex;\n            flex-direction: column; \/* \u0130\u00e7eri\u011fi dikey olarak s\u0131rala *\/\n            justify-content: center;\n            align-items: center;\n            min-height: 100vh; \/* Ekran\u0131n tamam\u0131n\u0131 kaplamas\u0131 i\u00e7in *\/\n            margin: 0;\n            padding: 20px; \/* Kenar bo\u015flu\u011fu ekleyerek ta\u015fmay\u0131 \u00f6nler *\/\n            box-sizing: border-box;\n        }\n        .game-container {\n            background-color: #2d3748; \/* Konteyner i\u00e7in daha koyu arka plan *\/\n            border-radius: 1.5rem; \/* Daha yuvarlak k\u00f6\u015feler *\/\n            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); \/* Daha g\u00fc\u00e7l\u00fc g\u00f6lge *\/\n            max-width: 900px; \/* Maksimum geni\u015flik *\/\n            width: 100%;\n            padding: 2.5rem; \/* Art\u0131r\u0131lm\u0131\u015f i\u00e7 dolgu *\/\n            display: flex;\n            flex-direction: column;\n            gap: 1.5rem;\n            border: 2px solid #4a5568; \/* \u0130nce kenarl\u0131k *\/\n            box-sizing: border-box; \/* Dolgunun geni\u015flik hesaplamas\u0131na dahil olmas\u0131n\u0131 sa\u011flar *\/\n        }\n        .question-area {\n            background-color: #1a202c; \/* Soru alan\u0131 i\u00e7in daha da koyu *\/\n            border-radius: 1rem;\n            padding: 1.5rem;\n            text-align: center;\n            font-size: 1.5rem; \/* Daha b\u00fcy\u00fck yaz\u0131 tipi boyutu *\/\n            font-weight: 600;\n            min-height: 100px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);\n        }\n        .answer-grid {\n            display: grid;\n            grid-template-columns: 1fr 1fr;\n            gap: 1rem;\n        }\n        .answer-button {\n            background-color: #4a5568; \/* D\u00fc\u011fmeler i\u00e7in soluk mavi-gri *\/\n            color: #e2e8f0;\n            padding: 1rem 1.5rem;\n            border-radius: 0.75rem;\n            font-size: 1.1rem;\n            font-weight: 600;\n            cursor: pointer;\n            transition: background-color 0.2s, transform 0.1s;\n            text-align: left;\n            border: none;\n            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);\n        }\n        .answer-button:hover:not(.disabled):not(.correct):not(.incorrect) {\n            background-color: #636b77; \/* \u00dczerine gelindi\u011finde daha a\u00e7\u0131k *\/\n            transform: translateY(-2px);\n        }\n        .answer-button:active:not(.disabled):not(.correct):not(.incorrect) {\n            transform: translateY(0);\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);\n        }\n        .answer-button.correct {\n            background-color: #48bb78; \/* Do\u011fru i\u00e7in ye\u015fil *\/\n            box-shadow: 0 0 15px #48bb78;\n        }\n        .answer-button.incorrect {\n            background-color: #ef4444; \/* Yanl\u0131\u015f i\u00e7in k\u0131rm\u0131z\u0131 *\/\n            box-shadow: 0 0 15px #ef4444;\n        }\n        .answer-button.disabled {\n            opacity: 0.6;\n            cursor: not-allowed;\n        }\n        .lifeline-button {\n            background-color: #3182ce; \/* Can simitleri i\u00e7in mavi *\/\n            color: white;\n            padding: 0.75rem 1.25rem;\n            border-radius: 0.75rem;\n            font-size: 1rem;\n            font-weight: 600;\n            cursor: pointer;\n            transition: background-color 0.2s, transform 0.1s;\n            border: none;\n            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);\n        }\n        .lifeline-button:hover:not(.disabled) {\n            background-color: #4299e1;\n            transform: translateY(-2px);\n        }\n        .lifeline-button:active:not(.disabled) {\n            transform: translateY(0);\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);\n        }\n        .lifeline-button.disabled {\n            opacity: 0.4;\n            cursor: not-allowed;\n            background-color: #6b7280;\n        }\n        .message-box {\n            background-color: #374151;\n            border-radius: 0.75rem;\n            padding: 1rem;\n            text-align: center;\n            font-size: 1.1rem;\n            font-weight: 500;\n            min-height: 40px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);\n        }\n        .start-button {\n            background-color: #f6ad55; \/* Ba\u015flat\/S\u0131f\u0131rla i\u00e7in turuncu *\/\n            color: #1a202c;\n            padding: 1rem 2rem;\n            border-radius: 1rem;\n            font-size: 1.3rem;\n            font-weight: 700;\n            cursor: pointer;\n            transition: background-color 0.2s, transform 0.1s;\n            border: none;\n            box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);\n            margin-top: 1.5rem;\n        }\n        .start-button:hover {\n            background-color: #fbd38d;\n            transform: translateY(-3px);\n        }\n        .start-button:active {\n            transform: translateY(0);\n            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);\n        }\n\n        \/* Reklam konteyneri i\u00e7in stil *\/\n        .ad-placement {\n            max-width: 900px; \/* Oyun konteyneri ile ayn\u0131 maksimum geni\u015flik *\/\n            width: 100%;\n            margin-bottom: 2rem; \/* Alttan bo\u015fluk *\/\n            text-align: center; \/* Reklam\u0131 ortala *\/\n            background-color: #2d3748; \/* Oyun temas\u0131na uygun arka plan *\/\n            border-radius: 1.5rem;\n            padding: 1rem;\n            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);\n            box-sizing: border-box;\n        }\n        .ad-placement ins {\n            display: block; \/* AdSense ins elementinin do\u011fru g\u00f6r\u00fcnt\u00fclenmesi i\u00e7in *\/\n        }\n\n        \/* Duyarl\u0131 ayarlamalar *\/\n        @media (max-width: 768px) {\n            .game-container {\n                padding: 1.5rem;\n                gap: 1rem;\n            }\n            .question-area {\n                font-size: 1.2rem;\n                padding: 1rem;\n            }\n            .answer-grid {\n                grid-template-columns: 1fr; \/* K\u00fc\u00e7\u00fck ekranlarda cevaplar\u0131 alt alta s\u0131rala *\/\n            }\n            .answer-button {\n                padding: 0.8rem 1rem;\n                font-size: 1rem;\n            }\n            .lifeline-button {\n                padding: 0.6rem 1rem;\n                font-size: 0.9rem;\n            }\n            .message-box {\n                font-size: 0.9rem;\n                padding: 0.8rem;\n            }\n            .start-button {\n                padding: 0.8rem 1.5rem;\n                font-size: 1.1rem;\n            }\n            .ad-placement {\n                padding: 0.5rem;\n                margin-bottom: 1rem; \/* K\u00fc\u00e7\u00fck ekranlarda bo\u015flu\u011fu azalt *\/\n            }\n        }\n    <\/style>\n<\/head>\n<body>\n    <!-- T\u00fcm oyun i\u00e7eri\u011fini sarmalayan bir div ekledik -->\n    <div class=\"millionaire-game-wrapper\">\n        <!-- Reklam Kodu Buraya Ta\u015f\u0131nd\u0131 -->\n        <div class=\"ad-placement\">\n            <script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-2506329722665303\"\n            crossorigin=\"anonymous\"><\/script>\n            <!-- yatay2025 -->\n            <ins class=\"adsbygoogle\"\n                style=\"display:block\"\n                data-ad-client=\"ca-pub-2506329722665303\"\n                data-ad-slot=\"1444491293\"\n                data-ad-format=\"auto\"\n                data-full-width-responsive=\"true\"><\/ins>\n            <script>\n                \/\/ AdSense push \u00e7a\u011fr\u0131s\u0131 i\u00e7in ayr\u0131 bir fonksiyon tan\u0131mla\n                function pushAdSense() {\n                    const adPlacementDiv = document.querySelector('.ad-placement');\n                    if (adPlacementDiv) {\n                        \/\/ Mevcut ins elementini kald\u0131r\n                        const existingIns = adPlacementDiv.querySelector('ins.adsbygoogle');\n                        if (existingIns) {\n                            existingIns.remove();\n                        }\n\n                        \/\/ Yeni bir ins elementi olu\u015ftur\n                        const newIns = document.createElement('ins');\n                        newIns.className = 'adsbygoogle';\n                        newIns.style.display = 'block';\n                        newIns.setAttribute('data-ad-client', 'ca-pub-2506329722665303');\n                        newIns.setAttribute('data-ad-slot', '1444491293');\n                        newIns.setAttribute('data-ad-format', 'auto');\n                        newIns.setAttribute('data-full-width-responsive', 'true');\n                        adPlacementDiv.appendChild(newIns);\n\n                        \/\/ Yeni elementi AdSense'e push et\n                        \/\/ Boyut kontrol\u00fcn\u00fc burada yapmaya gerek yok, \u00e7\u00fcnk\u00fc element yeni olu\u015fturuldu\n                        try {\n                            (adsbygoogle = window.adsbygoogle || []).push({});\n                        } catch (e) {\n                            console.error(\"AdSense push error:\", e);\n                        }\n                    } else {\n                        console.warn(\"AdSense container not found.\");\n                    }\n                }\n\n                \/\/ Sayfa y\u00fcklendi\u011finde reklam\u0131 y\u00fckle\n                window.addEventListener('load', function() {\n                    setTimeout(pushAdSense, 1500); \/\/ \u0130lk y\u00fcklemede 1.5 saniye gecikme\n                });\n            <\/script>\n        <\/div>\n\n        <div id=\"gameContainer\" class=\"game-container hidden\">\n            <div class=\"text-3xl font-bold text-center mb-4 text-yellow-400\">Who Wants to Be a Millionaire?<\/div>\n\n            <div id=\"prizeMoney\" class=\"text-xl font-semibold text-center mb-4\">Prize Money: $0<\/div>\n\n            <div id=\"questionArea\" class=\"question-area\">\n                <!-- Question will be loaded here -->\n            <\/div>\n\n            <div id=\"answerGrid\" class=\"answer-grid\">\n                <button class=\"answer-button\" data-answer=\"A\">A: <\/button>\n                <button class=\"answer-button\" data-answer=\"B\">B: <\/button>\n                <button class=\"answer-button\" data-answer=\"C\">C: <\/button>\n                <button class=\"answer-button\" data-answer=\"D\">D: <\/button>\n            <\/div>\n\n            <div class=\"flex justify-around gap-4 mt-4\">\n                <button id=\"fiftyFiftyBtn\" class=\"lifeline-button\">50:50<\/button>\n                <button id=\"phoneFriendBtn\" class=\"lifeline-button\">Phone a Friend<\/button>\n                <button id=\"askAudienceBtn\" class=\"lifeline-button\">Ask the Audience<\/button>\n            <\/div>\n\n            <div id=\"messageBox\" class=\"message-box mt-4\">\n                <!-- Game messages will appear here -->\n            <\/div>\n\n            <button id=\"resetButton\" class=\"start-button hidden\">Play Again<\/button>\n        <\/div>\n\n        <button id=\"startButton\" class=\"start-button\">Start Game<\/button>\n    <\/div>\n\n    <script>\n        \/\/ Ses efektleri i\u00e7in Audio nesneleri\n        \/\/ NOT: Bu URL'ler sadece \u00f6rnektir. Kendi ses dosyalar\u0131n\u0131z\u0131n URL'lerini buraya eklemelisiniz.\n        const correctSound = new Audio('https:\/\/www.soundjay.com\/human\/sounds\/applause-2.mp3'); \/\/ Alk\u0131\u015f sesi i\u00e7in \u00f6rnek URL\n        const incorrectSound = new Audio('https:\/\/www.soundjay.com\/misc\/sounds\/fail-buzzer-01.mp3'); \/\/ \u00dcz\u00fcnt\u00fc\/yanl\u0131\u015f cevap sesi i\u00e7in \u00f6rnek URL\n\n        \/\/ Array of questions, choices, and correct answers\n        const questions = [\n            {\n                question: \"Which planet is known as the 'Red Planet'?\",\n                choices: { A: \"Earth\", B: \"Mars\", C: \"Jupiter\", D: \"Venus\" },\n                correct: \"B\"\n            },\n            {\n                question: \"What is the capital of France?\",\n                choices: { A: \"Berlin\", B: \"Madrid\", C: \"Paris\", D: \"Rome\" },\n                correct: \"C\"\n            },\n            {\n                question: \"Who painted the Mona Lisa?\",\n                choices: { A: \"Vincent van Gogh\", B: \"Pablo Picasso\", C: \"Leonardo da Vinci\", D: \"Claude Monet\" },\n                correct: \"C\"\n            },\n            {\n                question: \"What is the largest ocean on Earth?\",\n                choices: { A: \"Atlantic Ocean\", B: \"Indian Ocean\", C: \"Arctic Ocean\", D: \"Pacific Ocean\" },\n                correct: \"D\"\n            },\n            {\n                question: \"What is the chemical symbol for water?\",\n                choices: { A: \"O2\", B: \"H2O\", C: \"CO2\", D: \"NaCl\" },\n                correct: \"B\"\n            },\n            {\n                question: \"Which animal is known as the 'King of the Jungle'?\",\n                choices: { A: \"Tiger\", B: \"Lion\", C: \"Elephant\", D: \"Bear\" },\n                correct: \"B\"\n            },\n            {\n                question: \"How many continents are there in the world?\",\n                choices: { A: \"5\", B: \"6\", C: \"7\", D: \"8\" },\n                correct: \"C\"\n            },\n            {\n                question: \"What is the highest mountain in the world?\",\n                choices: { A: \"Mount Everest\", B: \"K2\", C: \"Kangchenjunga\", D: \"Lhotse\" },\n                correct: \"A\"\n            },\n            {\n                question: \"Which country is famous for the Great Wall?\",\n                choices: { A: \"India\", B: \"Japan\", C: \"China\", D: \"Egypt\" },\n                correct: \"C\"\n            },\n            {\n                question: \"What is the currency of Japan?\",\n                choices: { A: \"Yuan\", B: \"Won\", C: \"Yen\", D: \"Rupee\" },\n                correct: \"C\"\n            }\n        ];\n\n        \/\/ Prize money tiers\n        const prizeTiers = [\n            0, 100, 200, 300, 500, 1000, \/\/ Safe haven at $1,000\n            2000, 4000, 8000, 16000, 32000, \/\/ Safe haven at $32,000\n            64000, 125000, 250000, 500000, 1000000\n        ];\n\n        \/\/ Game state variables\n        let currentQuestionIndex = 0;\n        let currentPrizeMoney = 0;\n        let lifelines = {\n            fiftyFifty: true,\n            phoneFriend: true,\n            askAudience: true\n        };\n        let gameActive = false; \/\/ To prevent interaction before game starts or after it ends\n\n        \/\/ DOM elements\n        const gameContainer = document.getElementById('gameContainer');\n        const startButton = document.getElementById('startButton');\n        const resetButton = document.getElementById('resetButton');\n        const questionArea = document.getElementById('questionArea');\n        const answerButtons = document.querySelectorAll('.answer-button');\n        const prizeMoneyDisplay = document.getElementById('prizeMoney');\n        const messageBox = document.getElementById('messageBox');\n        const fiftyFiftyBtn = document.getElementById('fiftyFiftyBtn');\n        const phoneFriendBtn = document.getElementById('phoneFriendBtn');\n        const askAudienceBtn = document.getElementById('askAudienceBtn');\n\n        \/**\n         * Initializes the game state and UI.\n         *\/\n        function initializeGame() {\n            currentQuestionIndex = 0;\n            currentPrizeMoney = 0;\n            lifelines = {\n                fiftyFifty: true,\n                phoneFriend: true,\n                askAudience: true\n            };\n            gameActive = true;\n\n            \/\/ Update UI elements\n            prizeMoneyDisplay.textContent = `Prize Money: $${currentPrizeMoney}`;\n            messageBox.textContent = \"Welcome! Let's play Who Wants to Be a Millionaire!\";\n            resetButton.classList.add('hidden');\n            startButton.classList.add('hidden');\n            gameContainer.classList.remove('hidden');\n\n            \/\/ Enable lifeline buttons\n            fiftyFiftyBtn.classList.remove('disabled');\n            phoneFriendBtn.classList.remove('disabled');\n            askAudienceBtn.classList.remove('disabled');\n            fiftyFiftyBtn.disabled = false;\n            phoneFriendBtn.disabled = false;\n            askAudienceBtn.disabled = false;\n\n            loadQuestion();\n\n            \/\/ Reklam\u0131 yeniden ba\u015flatma\/yenileme\n            \/\/ pushAdSense fonksiyonunu \u00e7a\u011f\u0131rarak reklam\u0131 yenile\n            setTimeout(pushAdSense, 1500); \/\/ Oyun yeniden ba\u015flat\u0131ld\u0131\u011f\u0131nda 1.5 saniye gecikme\n        }\n\n        \/**\n         * Loads and displays the current question and its choices.\n         *\/\n        function loadQuestion() {\n            if (currentQuestionIndex >= questions.length) {\n                endGame(true); \/\/ Player won!\n                return;\n            }\n\n            const q = questions[currentQuestionIndex];\n            questionArea.textContent = q.question;\n            messageBox.textContent = `Question ${currentQuestionIndex + 1} for $${prizeTiers[currentQuestionIndex + 1]}`;\n\n            \/\/ Reset answer button styles and enable them\n            answerButtons.forEach(button => {\n                button.classList.remove('correct', 'incorrect', 'disabled');\n                button.disabled = false;\n                button.style.display = 'block'; \/\/ Ensure all are visible\n                const dataAnswer = button.dataset.answer;\n                button.textContent = `${dataAnswer}: ${q.choices[dataAnswer]}`;\n            });\n        }\n\n        \/**\n         * Handles an answer selection.\n         * @param {Event} event - The click event from an answer button.\n         *\/\n        function handleAnswerClick(event) {\n            if (!gameActive) return;\n\n            const selectedAnswer = event.target.dataset.answer;\n            const q = questions[currentQuestionIndex];\n\n            \/\/ Disable all answer buttons to prevent multiple clicks\n            answerButtons.forEach(button => button.disabled = true);\n\n            if (selectedAnswer === q.correct) {\n                event.target.classList.add('correct');\n                messageBox.textContent = \"Correct! You've won $\" + prizeTiers[currentQuestionIndex + 1];\n                currentPrizeMoney = prizeTiers[currentQuestionIndex + 1];\n                prizeMoneyDisplay.textContent = `Prize Money: $${currentPrizeMoney}`;\n                correctSound.play(); \/\/ Do\u011fru cevap sesi \u00e7al\n\n                \/\/ Move to next question after a delay\n                setTimeout(() => {\n                    currentQuestionIndex++;\n                    loadQuestion();\n                }, 1500);\n            } else {\n                event.target.classList.add('incorrect');\n                \/\/ Show the correct answer\n                answerButtons.forEach(button => {\n                    if (button.dataset.answer === q.correct) {\n                        button.classList.add('correct');\n                    }\n                });\n                messageBox.textContent = \"Incorrect! The correct answer was \" + q.correct + \".\";\n                incorrectSound.play(); \/\/ Yanl\u0131\u015f cevap sesi \u00e7al\n                endGame(false); \/\/ Player lost\n            }\n        }\n\n        \/**\n         * Ends the game, displaying the final message and reset button.\n         * @param {boolean} won - True if the player won, false otherwise.\n         *\/\n        function endGame(won) {\n            gameActive = false;\n            if (won) {\n                currentPrizeMoney = prizeTiers[prizeTiers.length - 1]; \/\/ Max prize\n                messageBox.textContent = `Congratulations! You are a MILLIONAIRE! You won $${currentPrizeMoney}!`;\n                prizeMoneyDisplay.textContent = `Prize Money: $${currentPrizeMoney}`;\n            } else {\n                \/\/ Determine safe haven prize\n                let safePrize = 0;\n                if (currentQuestionIndex >= 5) { \/\/ Passed $1,000 question (index 4)\n                    safePrize = 1000;\n                }\n                if (currentQuestionIndex >= 10) { \/\/ Passed $32,000 question (index 9)\n                    safePrize = 32000;\n                }\n                currentPrizeMoney = safePrize;\n                prizeMoneyDisplay.textContent = `Prize Money: $${currentPrizeMoney}`;\n                messageBox.textContent += ` Game Over! You leave with $${currentPrizeMoney}.`;\n            }\n            resetButton.classList.remove('hidden');\n        }\n\n        \/**\n         * Implements the 50:50 lifeline.\n         * Removes two incorrect answers.\n         *\/\n        function useFiftyFifty() {\n            if (!lifelines.fiftyFifty || !gameActive) return;\n\n            lifelines.fiftyFifty = false;\n            fiftyFiftyBtn.classList.add('disabled');\n            fiftyFiftyBtn.disabled = true;\n            messageBox.textContent = \"50:50 used! Two incorrect answers removed.\";\n\n            const q = questions[currentQuestionIndex];\n            const incorrectAnswers = [];\n            for (const key in q.choices) {\n                if (key !== q.correct) {\n                    incorrectAnswers.push(key);\n                }\n            }\n\n            \/\/ Randomly select two incorrect answers to remove\n            const answersToRemove = [];\n            while (answersToRemove.length < 2) {\n                const randomIndex = Math.floor(Math.random() * incorrectAnswers.length);\n                const answer = incorrectAnswers[randomIndex];\n                if (!answersToRemove.includes(answer)) {\n                    answersToRemove.push(answer);\n                }\n            }\n\n            \/\/ Hide or disable the chosen incorrect answer buttons\n            answerButtons.forEach(button => {\n                if (answersToRemove.includes(button.dataset.answer)) {\n                    button.classList.add('disabled');\n                    button.disabled = true;\n                    button.style.display = 'none'; \/\/ Visually hide\n                }\n            });\n        }\n\n        \/**\n         * Implements the Phone a Friend lifeline.\n         * Provides a simulated answer from a friend.\n         *\/\n        function usePhoneFriend() {\n            if (!lifelines.phoneFriend || !gameActive) return;\n\n            lifelines.phoneFriend = false;\n            phoneFriendBtn.classList.add('disabled');\n            phoneFriendBtn.disabled = true;\n\n            const q = questions[currentQuestionIndex];\n            let friendAnswer = q.correct; \/\/ Friend is usually right\n            \/\/ Sometimes the friend gives a wrong answer (e.g., 10% chance)\n            if (Math.random() < 0.1) {\n                const incorrectChoices = Object.keys(q.choices).filter(key => key !== q.correct);\n                friendAnswer = incorrectChoices[Math.floor(Math.random() * incorrectChoices.length)];\n            }\n\n            messageBox.textContent = `Your friend thinks the answer is: ${friendAnswer}`;\n        }\n\n        \/**\n         * Implements the Ask the Audience lifeline.\n         * Provides simulated audience percentages.\n         *\/\n        function useAskAudience() {\n            if (!lifelines.askAudience || !gameActive) return;\n\n            lifelines.askAudience = false;\n            askAudienceBtn.classList.add('disabled');\n            askAudienceBtn.disabled = true;\n\n            const q = questions[currentQuestionIndex];\n            const correctChoice = q.correct;\n            const choices = Object.keys(q.choices);\n            const audienceVotes = {};\n            let remainingPercentage = 100;\n\n            \/\/ Give the correct answer a high percentage\n            const correctPercentage = Math.floor(Math.random() * (80 - 50 + 1)) + 50; \/\/ 50-80%\n            audienceVotes[correctChoice] = correctPercentage;\n            remainingPercentage -= correctPercentage;\n\n            \/\/ Distribute remaining percentage among other choices\n            const otherChoices = choices.filter(c => c !== correctChoice);\n            let tempRemaining = remainingPercentage;\n            for (let i = 0; i < otherChoices.length; i++) {\n                const choice = otherChoices[i];\n                let percentage;\n                if (i === otherChoices.length - 1) {\n                    percentage = tempRemaining; \/\/ Assign all remaining to the last one\n                } else {\n                    percentage = Math.floor(Math.random() * (tempRemaining + 1));\n                }\n                audienceVotes[choice] = percentage;\n                tempRemaining -= percentage;\n            }\n\n            \/\/ Ensure percentages sum to 100 (due to rounding, might need adjustment)\n            const currentSum = Object.values(audienceVotes).reduce((sum, val) => sum + val, 0);\n            if (currentSum !== 100) {\n                audienceVotes[choices[0]] += (100 - currentSum); \/\/ Adjust one to make it 100\n            }\n\n\n            let audienceMessage = \"Audience poll results: \";\n            choices.forEach(choice => {\n                audienceMessage += `${choice}: ${audienceVotes[choice] || 0}% `;\n            });\n            messageBox.textContent = audienceMessage.trim();\n        }\n\n        \/\/ Event Listeners\n        startButton.addEventListener('click', initializeGame);\n        resetButton.addEventListener('click', initializeGame);\n\n        answerButtons.forEach(button => {\n            button.addEventListener('click', handleAnswerClick);\n        });\n\n        fiftyFiftyBtn.addEventListener('click', useFiftyFifty);\n        phoneFriendBtn.addEventListener('click', usePhoneFriend);\n        askAudienceBtn.addEventListener('click', useAskAudience);\n\n        \/\/ Initial state: show start button, hide game\n        gameContainer.classList.add('hidden');\n        startButton.classList.remove('hidden');\n    <\/script>\n","protected":false},"excerpt":{"rendered":"<p>Who Wants to Be a Millionaire? Prize Money: $0 A: B: C: D: 50:50 Phone a Friend Ask the Audience Play Again Start Game<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-315","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/posts\/315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/comments?post=315"}],"version-history":[{"count":3,"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/posts\/315\/revisions"}],"predecessor-version":[{"id":318,"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/posts\/315\/revisions\/318"}],"wp:attachment":[{"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/media?parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/categories?post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/insaatsirketleri.com.tr\/en\/wp-json\/wp\/v2\/tags?post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}