Skip to content
TheChatArchiveThe Chat Archive
Coherecommand-a-03-2025· CohereHugging Face LMArena Human Preference 140K

Stwórz mi w html taką grę jak invoker game

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Qwenqwen3-235b-a22b-instruct-2507’s answer.
  1. User

    Stwórz mi w html taką grę jak invoker game

  2. Cohere Assistant

    Poniżej znajdziesz prosty przykład gry HTML/JavaScript, która symuluje podstawowe mechaniki "Invoker Game". Gra będzie polegała na wpisywaniu sekwencji zaklęć Invokera w odpowiedniej kolejności.

    <!DOCTYPE html>
    <html lang="pl">
    <head>
        <meta charset="UTF-8">
        <title>Invoker Combo Trainer</title>
        <style>
            body {
                font-family: Arial, sans-serif;
                background-color: #222;
                color: #fff;
                text-align: center;
                padding-top: 50px;
            }
    
            #game-container {
                display: flex;
                flex-direction: column;
                align-items: center;
            }
    
            #combo-display {
                font-size: 24px;
                margin: 20px;
                padding: 10px;
                background-color: #333;
                border-radius: 5px;
                width: 300px;
            }
    
            .spell-button {
                font-size: 18px;
                padding: 10px 20px;
                margin: 5px;
                background-color: #444;
                border: none;
                color: white;
                border-radius: 5px;
                cursor: pointer;
            }
    
            .spell-button:hover {
                background-color: #555;
            }
    
            #input-field {
                font-size: 18px;
                padding: 10px;
                width: 200px;
                margin: 10px;
                border-radius: 5px;
                border: 2px solid #444;
            }
    
            #result {
                font-size: 20px;
                margin: 20px;
                padding: 10px;
                background-color: #333;
                border-radius: 5px;
            }
        </style>
    </head>
    <body>
        <div id="game-container">
            <h1>Invoker Combo Trainer</h1>
            <div id="combo-display">Wciśnij Start</div>
            <div>
                <button class="spell-button" onclick="inputSpell('quas')">Quas</button>
                <button class="spell-button" onclick="inputSpell('wex')">Wex</button>
                <button class="spell-button" onclick="inputSpell('exort')">Exort</button>
                <button class="spell-button" onclick="inputSpell('invoke')">Invoke</button>
            </div>
            <div id="result"></div>
            <button class="spell-button" onclick="startGame()" style="margin-top: 20px;">Start</button>
        </div>
    
        <script>
            const combos = {
                "tornado": ["quas", "quas", "invoke", "wex", "wex", "exort", "invoke", "tornado"],
                "meatball": ["wex", "quas", "exort", "invoke", "meatball"],
                "sunstrike": ["exort", "exort", "exort", "invoke", "sunstrike"]
            };
    
            let currentCombo = [];
            let targetCombo = [];
            let comboName = "";
            let startTime = 0;
    
            function startGame() {
                const comboKeys = Object.keys(combos);
                const randomCombo = comboKeys[Math.floor(Math.random() * comboKeys.length)];
                targetCombo = combos[randomCombo];
                comboName = randomCombo;
                currentCombo = [];
                document.getElementById('combo-display').textContent = `Combo: ${randomCombo.toUpperCase()}`;
                document.getElementById('result').textContent = '';
                startTime = Date.now();
            }
    
            function inputSpell(spell) {
                currentCombo.push(spell);
                checkCombo();
            }
    
            function checkCombo() {
                if (currentCombo.length > targetCombo.length) {
                    showResult("Błąd! Za dużo zaklęć", false);
                    return;
                }
    
                if (JSON.stringify(currentCombo) === JSON.stringify(targetCombo)) {
                    const timeTaken = (Date.now() - startTime) / 1000;
                    showResult(`Sukces! Czas: ${timeTaken.toFixed(2)}s`, true);
                } else if (currentCombo.length > 0 && currentCombo[currentCombo.length - 1] !== targetCombo[currentCombo.length - 1]) {
                    showResult("Błąd! Niepoprawna sekwencja", false);
                }
            }
    
            function showResult(message, isSuccess) {
                const resultElement = document.getElementById('result');
                resultElement.textContent = message;
                resultElement.style.color = isSuccess ? "#2ecc71" : "#e74c3c";
                if (!isSuccess) {
                    currentCombo = [];
                }
            }
        </script>
    </body>
    </html>
    

    Instrukcje:

    1. Zapisz kod jako invoker_trainer.html
    2. Otwórz plik w przeglądarce
    3. Kliknij "Start" aby rozpocząć trening
    4. Użyj przycisków Quas/Wex/Exort/Invoke lub wpisuj sekwencje ręcznie
    5. Gra sprawdza poprawność sekwencji i mierzy czas

    Funkcjonalności:

    • Losowe generowanie kombosów
    • Sprawdzanie poprawności sekwencji
    • Pomiar czasu reakcji
    • Wizualna informacja o błędach
    • Obsługa podstawowych kombosów Invokera

    Chcesz dodać więcej kombosów lub ulepszyć interfejs?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.