Skip to content
TheChatArchiveThe Chat Archive
Metallama-3.3-70b-instruct· MetaHugging Face LMArena Human Preference 140K

Make me a html script game that will be fun, make more replayable and fun game than the…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with DeepSeekdeepseek-v3-0324’s answer.
  1. User

    Make me a html script game that will be fun, make more replayable and fun game than the other ai.

  2. Meta Assistant

    Here's a simple HTML script game that I came up with, which combines elements of adventure, puzzle-solving, and strategy. It's called "Treasure Hunter."

    Game Description: You are a treasure hunter who has been tasked with finding the legendary Golden Idol. The idol is hidden in a mysterious temple, filled with traps, puzzles, and hidden dangers. Your goal is to navigate through the temple, collect treasures and clues, and ultimately find the Golden Idol.

    Gameplay:

    1. The game is divided into levels, each representing a room in the temple.
    2. Each room has a description, and you can choose to explore the room, take an item, or move to the next room.
    3. Some rooms have puzzles or challenges that you must solve to progress.
    4. You can collect treasures and clues, which will help you in your quest.
    5. The game ends when you find the Golden Idol or run out of health.

    HTML Script:

    <!DOCTYPE html>
    <html>
    <head>
      <title>Treasure Hunter</title>
      <style>
        body {
          font-family: Arial, sans-serif;
        }
        #game-container {
          width: 800px;
          margin: 40px auto;
          padding: 20px;
          border: 1px solid #ccc;
          border-radius: 10px;
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        #game-container h1 {
          text-align: center;
        }
        #game-container p {
          margin-bottom: 20px;
        }
        #game-container ul {
          list-style: none;
          padding: 0;
          margin: 0;
        }
        #game-container li {
          margin-bottom: 10px;
        }
        #game-container button {
          background-color: #4CAF50;
          color: #fff;
          padding: 10px 20px;
          border: none;
          border-radius: 5px;
          cursor: pointer;
        }
        #game-container button:hover {
          background-color: #3e8e41;
        }
      </style>
    </head>
    <body>
      <div id="game-container">
        <h1>Treasure Hunter</h1>
        <p id="description"></p>
        <ul id="options">
        </ul>
        <button id="submit">Submit</button>
        <p id="result"></p>
      </div>
    
      <script>
        // Game data
        const gameData = {
          rooms: [
            {
              description: "You are standing in front of the temple entrance. The doors are old and creaky.",
              options: [
                { text: "Enter the temple", action: "enterTemple" },
                { text: "Search the surrounding area", action: "searchArea" }
              ]
            },
            {
              description: "You are inside the temple. The air is musty and filled with the scent of incense.",
              options: [
                { text: "Explore the temple", action: "exploreTemple" },
                { text: "Take a torch from the wall", action: "takeTorch" }
              ]
            },
            {
              description: "You are in a room filled with treasure chests. Some of them are locked.",
              options: [
                { text: "Open a chest", action: "openChest" },
                { text: "Search for a key", action: "searchKey" }
              ]
            },
            {
              description: "You are in a room with a puzzle. Solve it to unlock the door.",
              options: [
                { text: "Solve the puzzle", action: "solvePuzzle" },
                { text: "Give up", action: "giveUp" }
              ]
            },
            {
              description: "You have found the Golden Idol! Congratulations!",
              options: []
            }
          ],
          player: {
            health: 100,
            treasures: []
          }
        };
    
        // Game logic
        let currentRoom = 0;
        let player = gameData.player;
    
        function updateGame() {
          const description = document.getElementById("description");
          const options = document.getElementById("options");
          const result = document.getElementById("result");
    
          description.innerText = gameData.rooms[currentRoom].description;
          options.innerHTML = "";
          gameData.rooms[currentRoom].options.forEach((option) => {
            const li = document.createElement("li");
            li.innerText = option.text;
            li.addEventListener("click", () => {
              option.action();
            });
            options.appendChild(li);
          });
    
          if (gameData.rooms[currentRoom].options.length === 0) {
            result.innerText = "You have won the game! Congratulations!";
          }
        }
    
        function enterTemple() {
          currentRoom = 1;
          updateGame();
        }
    
        function searchArea() {
          player.health -= 10;
          result.innerText = "You found a small treasure, but lost some health.";
          updateGame();
        }
    
        function exploreTemple() {
          currentRoom = 2;
          updateGame();
        }
    
        function takeTorch() {
          player.treasures.push("Torch");
          result.innerText = "You took a torch from the wall.";
          updateGame();
        }
    
        function openChest() {
          const chest = gameData.rooms[currentRoom].options[0];
          if (chest.locked) {
            result.innerText = "The chest is locked. You need a key to open it.";
          } else {
            player.treasures.push("Treasure");
            result.innerText = "You found a treasure!";
          }
          updateGame();
        }
    
        function searchKey() {
          player.health -= 10;
          result.innerText = "You found a key, but lost some health.";
          updateGame();
        }
    
        function solvePuzzle() {
          const puzzle = gameData.rooms[currentRoom].options[0];
          if (puzzle.solved) {
            result.innerText = "You already solved the puzzle.";
          } else {
            puzzle.solved = true;
            currentRoom = 4;
            updateGame();
          }
        }
    
        function giveUp() {
          player.health = 0;
          result.innerText = "You gave up. Game over.";
          updateGame();
        }
    
        updateGame();
    
        document.getElementById("submit").addEventListener("click", () => {
          updateGame();
        });
      </script>
    </body>
    </html>
    

    How to Play:

    1. Open the HTML file in a web browser.
    2. Read the description of the current room and choose an option by clicking on it.
    3. The game will update the description and options based on your choice.
    4. Keep playing until you find the Golden Idol or run out of health.

    Note: This is a basic implementation of the game, and you can add more features, rooms, and puzzles to make it more challenging and fun.

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