Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-7-sonnet-20250219-thinking-32k· AnthropicHugging Face LMArena Human Preference 140K

ui가 예쁜가위바위보 게임 즉석해서 만들어줘

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Amazon Novaamazon.nova-pro-v1:0’s answer.
  1. User

    ui가 예쁜가위바위보 게임 즉석해서 만들어줘

  2. Claude Assistant
    <!DOCTYPE html>
    <html lang="ko">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>가위바위보 게임</title>
        <style>
            body {
                font-family: 'Noto Sans KR', sans-serif;
                background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100vh;
                margin: 0;
            }
            .game-container {
                background-color: white;
                border-radius: 20px;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                padding: 30px;
                text-align: center;
                width: 360px;
            }
            h1 {
                color: #5e72e4;
                margin-bottom: 30px;
            }
            .choices {
                display: flex;
                justify-content: space-around;
                margin: 30px 0;
            }
            .choice {
                background: none;
                border: none;
                cursor: pointer;
                transition: transform 0.2s;
                font-size: 50px;
            }
            .choice:hover {
                transform: scale(1.2);
            }
            .result {
                margin-top: 20px;
                min-height: 60px;
            }
            .score-board {
                display: flex;
                justify-content: space-around;
                margin: 20px 0;
                font-size: 18px;
                color: #525f7f;
            }
            .score {
                padding: 10px 20px;
                border-radius: 10px;
                background-color: #f8f9fe;
            }
            .vs {
                display: flex;
                justify-content: space-around;
                margin: 20px 0;
                font-size: 24px;
                color: #5e72e4;
            }
            .player-choice, .computer-choice {
                font-size: 40px;
                min-height: 60px;
                animation: bounce 0.5s;
            }
            @keyframes bounce {
                0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
                40% {transform: translateY(-20px);}
                60% {transform: translateY(-10px);}
            }
            .message {
                color: #5e72e4;
                font-weight: bold;
                font-size: 24px;
            }
            .reset {
                background-color: #5e72e4;
                color: white;
                border: none;
                padding: 10px 20px;
                border-radius: 10px;
                cursor: pointer;
                margin-top: 20px;
                font-size: 16px;
                transition: background-color 0.3s;
            }
            .reset:hover {
                background-color: #4559b9;
            }
        </style>
    </head>
    <body>
        <div class="game-container">
            <h1>가위바위보 게임</h1>
            <div class="score-board">
                <div class="score">플레이어: <span id="player-score">0</span></div>
                <div class="score">컴퓨터: <span id="computer-score">0</span></div>
            </div>
            <div class="choices">
                <button class="choice" onclick="play('✌️')">✌️</button>
                <button class="choice" onclick="play('✊')">✊</button>
                <button class="choice" onclick="play('✋')">✋</button>
            </div>
            <div class="vs">
                <div class="player-choice" id="player-choice"></div>
                <div>VS</div>
                <div class="computer-choice" id="computer-choice"></div>
            </div>
            <div class="result">
                <p class="message" id="message">선택해주세요!</p>
            </div>
            <button class="reset" onclick="resetGame()">다시 시작</button>
        </div>
    
        <script>
            let playerScore = 0;
            let computerScore = 0;
            const choices = ['✌️', '✊', '✋'];
    
            function play(playerChoice) {
                const computerChoice = choices[Math.floor(Math.random() * 3)];
                document.getElementById('player-choice').textContent = playerChoice;
                document.getElementById('computer-choice').textContent = computerChoice;
                
                let result = '';
                
                if (playerChoice === computerChoice) {
                    result = '무승부!';
                } else if (
                    (playerChoice === '✌️' && computerChoice === '✋') ||
                    (playerChoice === '✊' && computerChoice === '✌️') ||
                    (playerChoice === '✋' && computerChoice === '✊')
                ) {
                    result = '이겼습니다!';
                    playerScore++;
                    document.getElementById('player-score').textContent = playerScore;
                } else {
                    result = '졌습니다!';
                    computerScore++;
                    document.getElementById('computer-score').textContent = computerScore;
                }
                
                document.getElementById('message').textContent = result;
                
                // 애니메이션 리셋을 위한 트릭
                document.getElementById('player-choice').style.animation = 'none';
                document.getElementById('computer-choice').style.animation = 'none';
                setTimeout(() => {
                    document.getElementById('player-choice').style.animation = 'bounce 0.5s';
                    document.getElementById('computer-choice').style.animation = 'bounce 0.5s';
                }, 10);
            }
    
            function resetGame() {
                playerScore = 0;
                computerScore = 0;
                document.getElementById('player-score').textContent = '0';
                document.getElementById('computer-score').textContent = '0';
                document.getElementById('player-choice').textContent = '';
                document.getElementById('computer-choice').textContent = '';
                document.getElementById('message').textContent = '선택해주세요!';
            }
        </script>
    </body>
    </html>
    

    코드를 설명해 드릴까요?

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