0 dict | 1 dict | 2 dict |
|---|---|---|
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D side-scrolling in HTML/JS/CSS where the player must jump over obstacles to reach the end of the level.",
"role": "user"
} | {
"content": "Here is a complete, playable 2D side-scrolling platformer contained in a single HTML file.\n\nIt features **physics (gravity/friction)**, **collision detection**, **camera scrolling**, and **win/loss conditions**.\n\nSave the following code as an `.html` file (e.g., `game.html`) and open it in your brow... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down in HTML/JS/CSS where the player navigates a maze to collect all the scattered coins.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It includes a **procedural maze generator**, **collision detection**, **coin collection logic**, and a **win state**.\n\nYou can save this code as an `.html` file (e.g., `maze-game.html`) and open it in any web browser.\n\n```html\n<!DOCTYPE html>\n<html lang=\"... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 3D infinite runner in HTML/JS/CSS where the goal is to survive for as long as possible while dodging incoming blocks.",
"role": "user"
} | {
"content": "Here is a complete, single-file 3D Infinite Runner game. I have used **Three.js** (loaded via CDN), which is the standard library for creating 3D graphics in the browser.\n\nThis game includes:\n1. **Smooth Player Movement** (Left/Right).\n2. **Accelerating Gameplay** (It gets faster the longer you su... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a classic arcade in HTML/JS/CSS where the player shoots incoming alien spaceships before they reach the bottom of the screen.",
"role": "user"
} | {
"content": "Here is a complete, self-contained **Space Shooter** arcade game.\n\nIt includes a retro neon aesthetic, a particle explosion system, scoring, and increasing difficulty.\n\nYou can save this code as an `.html` file (e.g., `game.html`) and open it in any browser to play.\n\n```html\n<!DOCTYPE html>\n<htm... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a turn-based strategy in HTML/JS/CSS where two armies take turns moving units to capture the opponent's base.",
"role": "user"
} | {
"content": "Here is a complete, playable Turn-Based Strategy game contained in a single file structure.\n\nI have designed it with the following rules (classic \"Tactics\" style):\n1. **Objective:** Move a unit onto the opponent's **Base** (the flag) to win.\n2. **Movement:** Click your unit to select it. Valid m... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple clicker in HTML/JS/CSS where the user clicks a button to increase a score counter as fast as possible.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It includes a 10-second timer feature to challenge the user to click \"as fast as possible,\" along with a High Score tracker.\n\nYou can save this code as an `.html` file (e.g., `clicker.html`) and open it in any web browser.\n\n```html\n<!DOCTYPE html>\n<html ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a puzzle in HTML/JS/CSS where the player must slide tiles into the correct order to form an image.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript.\n\nYou can save this code as an `.html` file (e.g., `puzzle.html`) and open it in any web browser.\n\n### Key Features:\n* **Guaranteed Solvability:** The shuffle mechanism works by simulating random valid moves starting fr... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a card-matching in HTML/JS/CSS where the player drives a car around an infinite map with randomly generated bloxel buildings that are destroyed depending on the car speed",
"role": "user"
} | {
"content": "Here is a complete, single-file HTML solution. It uses **Three.js** for the 3D rendering and physics simulation.\n\n**Game Concept:**\n1. **The Objective:** Find matching pairs of buildings.\n2. **The Reveal:** Buildings look identical (gray skyscrapers). You must drive into them to \"reveal\" their i... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic platformer in HTML/JS/CSS where the character collects all the keys to unlock the exit door.",
"role": "user"
} | {
"content": "Here is a complete, playable platformer contained within a single HTML file. You can copy the code below, save it as an `.html` file (e.g., `game.html`), and open it in your browser.\n\n### How to Play\n* **Arrow Keys / WASD:** Move and Jump.\n* **Goal:** Collect the **Yellow Keys**.\n* **Win:** R... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a typing tutor in HTML/JS/CSS where the user must correctly type the words displayed on the screen before they disappear.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript. You can save this code as an `.html` file (e.g., `typing-game.html`) and open it in any web browser to play.\n\n### Features\n* **Falling Words:** Words spawn at the top and fall down.\n* **Difficulty Scaling:** Words fal... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a snake in HTML/JS/CSS where the player grows longer by eating food while avoiding the walls and their own tail.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript required to play Snake.\n\nYou can save this code as an `.html` file (e.g., `snake.html`) and open it in any web browser to play.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a quiz in HTML/JS/CSS where the user answers multiple-choice questions about a specific topic to achieve a high score.",
"role": "user"
} | {
"content": "Here is a complete, fully functional Quiz Application using **HTML**, **CSS**, and **JavaScript**.\n\nI have designed this to be modern, responsive, and easy to customize. The current topic is \"Space & Astronomy,\" but you can easily change the questions in the JavaScript section.\n\nYou can save these... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a resource management in HTML/JS/CSS where the player balances income and expenses to keep their fictional business profitable for a set number of years.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript. It features a \"Tech Startup Simulator\" where you must balance staff, marketing, and office costs against monthly income.\n\nYou can save this code as an `.html` file (e.g., `game.html`) and open it in any web browser to pla... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a space shooter in HTML/JS/CSS where the player controls a ship to defeat a series of increasingly difficult boss enemies.",
"role": "user"
} | {
"content": "Here is a complete, single-file HTML game. It includes the CSS, HTML structure, and the JavaScript logic required to run a Boss Rush space shooter.\n\nThis game features:\n1. **Player Controller:** Smooth movement and shooting.\n2. **Boss Logic:** A system that spawns new, stronger bosses with differe... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a memory game in HTML/JS/CSS where the player clicks on segments of a circle to light them up in the correct sequence.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It includes the HTML structure, CSS for styling the circular segments, and JavaScript to handle the game logic and synthesized sounds.\n\nYou can save this code as an `.html` file (e.g., `memory-game.html`) and open it in any browser.\n\n```html\n<!DOCTYPE html>... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic RPG battle in HTML/JS/CSS where the player uses attack and magic options to deplete an enemy's health bar.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript to run a basic RPG battle.\n\nYou can save this code as an `.html` file (e.g., `rpg-battle.html`) and open it in any web browser.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simulation of Pong in HTML/JS/CSS where two paddles move vertically to keep a ball in play.",
"role": "user"
} | {
"content": "Here is a complete, single-file HTML solution. It contains the CSS for styling, the HTML canvas setup, and the JavaScript logic to run an \"AI vs AI\" simulation where both paddles automatically track the ball to keep the volley going indefinitely.\n\nYou can save this code as an `.html` file (e.g., `po... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a tile-matching like Bejeweled in HTML/JS/CSS where the player swaps adjacent gems to form lines of three or more of the same color.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript. I have designed it to use drag-and-drop mechanics (like the original game) and standard CSS shapes so you don't need to download external images.\n\nSave the following code as an `.html` file (e.g., `gem-game.html`) and open ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple inventory management in HTML/JS/CSS where items dragged from one box to another are successfully transferred.",
"role": "user"
} | {
"content": "Here is a complete, working example of a drag-and-drop inventory system. I have kept it in a single file structure so you can save it as an `.html` file and run it immediately in your browser.\n\n### Key Features:\n1. **Visual Feedback:** Items become semi-transparent when dragged. Target boxes highlig... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a rhythm game in HTML/JS/CSS where the player presses corresponding keys in time with the music as notes scroll down the screen.",
"role": "user"
} | {
"content": "Here is a fully functional Rhythm Game contained in a single file structure.\n\nThis game features:\n1. **Synthesized Audio:** It generates its own music using the Web Audio API (no external MP3s needed).\n2. **Rhythm Engine:** Notes fall based on time, not frame count, ensuring synchronization.\n3. ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down maze runner in HTML/JS/CSS where the player must find and activate three pressure plates in sequence.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `maze-game.html`) and open it in any web browser.\n\nIt features:\n1. **Smooth movement** with collision detection.\n2. **Sequence Logic**: You must step on Plate 1, then 2, then 3. Stepping on them out of order... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D breakout clone in HTML/JS/CSS where the player moves a paddle to bounce a ball and destroy all the bricks at the top.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `breakout.html`) and open it in any web browser to play.\n\nIt includes the HTML structure, CSS styling for presentation, and the JavaScript game logic.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple painting application in HTML/JS/CSS where the user can draw lines of different colors on a canvas.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `paint.html`) and open it in any web browser.\n\nIt includes:\n1. **HTML**: A toolbar with a color picker, brush size slider, clear button, and the canvas.\n2. **CSS**: Styling to make it look clean and centered... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a text adventure in HTML/JS/CSS where the player enters commands like \"go north\" or \"take sword\" to interact with the environment.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `adventure.html`) and open it in any web browser to play.\n\nIt includes a dark \"terminal\" style interface, a parsing engine, an inventory system, and a mini-dungeon scenario.\n\n```html\n<!DOCTYPE html>\n<html ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic tower defense in HTML/JS/CSS where the player spends earned gold to place defensive towers that automatically shoot at approaching enemies.",
"role": "user"
} | {
"content": "Here is a complete, playable Tower Defense game contained within a single HTML file.\n\nYou can copy the code below, save it as an `.html` file (e.g., `game.html`), and open it in any web browser to play.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta na... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a hangman in HTML/JS/CSS where the player guesses letters to complete a hidden word before a figure is fully drawn.",
"role": "user"
} | {
"content": "Here is a complete, fully functional Hangman game contained within a single HTML file. You can save this as an `.html` file (e.g., `hangman.html`) and open it in any web browser.\n\nIt features:\n* A clean SVG-based drawing that appears step-by-step.\n* An on-screen virtual keyboard.\n* Physical k... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic guessing game in HTML/JS/CSS where the player tries to guess a randomly generated secret number within a limited number of attempts.",
"role": "user"
} | {
"content": "Here is a complete, ready-to-use Number Guessing Game. I have separated the code into HTML, CSS, and JavaScript sections, but you can put them all in one file to run it easily.\n\n### The Logic\n1. **Random Number:** The computer picks a number between 1 and 100.\n2. **Attempts:** You have 10 tries.\n... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a physics-based puzzle in HTML/JS/CSS where the player draws lines or shapes to guide a falling object into a target zone.",
"role": "user"
} | {
"content": "Here is a complete, single-file HTML solution. It uses the **Matter.js** physics engine (loaded via CDN) to handle realistic gravity, collisions, and rigid body dynamics.\n\n### How to play:\n1. **Draw** lines with your mouse (or finger on touch devices) to create a path.\n2. Click **\"Drop Ball\"** t... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple dating sim in HTML/JS/CSS where the player makes dialogue choices to improve their relationship points with a character.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `dating-sim.html`) and open it in any web browser.\n\nIt features a \"Visual Novel\" style interface, a Love Meter that updates based on your choices, and multiple endings.\n\n```html\n<!DOCTYPE html>\n<html lang=... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a real-time strategy where the player can build basic resource collectors and two types of combat units.",
"role": "user"
} | {
"content": "This is a complete, playable prototype of a Real-Time Strategy (RTS) game engine using Python and the **Pygame** library.\n\nIt includes:\n1. **Resource Management**: A base building and minerals to harvest.\n2. **Unit Production**: Workers, Soldiers (fast/light), and Tanks (slow/heavy).\n3. **Contro... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple battleship game in HTML/JS/CSS where the player tries to sink an opponent's hidden fleet by calling out grid coordinates.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript. You can save this code as an `.html` file (e.g., `battleship.html`) and open it in any web browser to play.\n\n### How it works:\n1. **The Logic:** The computer randomly places 5 ships (Carrier, Battleship, Cruiser, Subm... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a scrolling space shooter in HTML/JS/CSS where the player's ship continuously moves forward and they control left/right movement.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `game.html`) and open it in any web browser to play.\n\nIt features:\n1. **Parallax Background:** Stars move at different speeds to create the illusion of fast forward motion.\n2. **Smooth Controls:** Physics-ba... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic matching game in HTML/JS/CSS where pairs of icons hidden under squares must be found within a time limit.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript required to run a Memory Matching game.\n\nYou can save the code below as an `.html` file (e.g., `game.html`) and open it in any web browser.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a logic puzzle in HTML/JS/CSS where the player must arrange colored blocks according to proximity rules.",
"role": "user"
} | {
"content": "Here is a complete, playable logic puzzle. It generates a new random puzzle every time you play.\n\nThe logic works by first creating a random \"Answer Key\" (a permutation of the colors), and then generating a list of true statements (clues) based on that answer key. You must arrange the blocks to matc... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple animation player in HTML/JS/CSS where buttons control frame-by-frame playback of a pre-defined character movement.",
"role": "user"
} | {
"content": "Here is a complete, self-contained solution. You can copy and paste this code into a single HTML file (e.g., `animation.html`) and open it in your browser.\n\nIt uses **SVGs** to draw a stick figure so you don't need to download any external image files. The code demonstrates how to handle frame logic, ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D simple car racing game in HTML/JS/CSS where the player keeps their car on the road for as long as possible.",
"role": "user"
} | {
"content": "Here is a complete, playable 2D car racing game contained within a single HTML file.\n\nIt uses **HTML** for the structure, **CSS** for the styling (making the cars and road look nice), and **JavaScript** for the game logic (collision detection, movement, and scoring).\n\n### How to Play:\n1. Copy the ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down shooter in HTML/JS/CSS where the player uses the mouse to aim and shoot enemies surrounding them.",
"role": "user"
} | {
"content": "Here is a complete, playable Top-Down Shooter game contained in a single HTML file.\n\nIt features:\n* **Player:** A stationary turret in the center.\n* **Controls:** Mouse to aim, Click to shoot.\n* **Enemies:** They spawn from the edges and move toward you.\n* **Physics:** Projectile collision... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic text editor in HTML/JS/CSS with functionality for bold, italics, and saving the content as a file.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `editor.html`) and open it in any browser.\n\nIt uses the `contenteditable` attribute to create the editing surface and `document.execCommand` for styling.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a \"whack-a-mole\" style game in HTML/JS/CSS where targets randomly pop up from holes and must be clicked quickly.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript needed to play \"Whack-a-Mole\".\n\nYou can save the code below as an `.html` file (e.g., `whackamole.html`) and open it in any web browser to play.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple graphing tool in HTML/JS/CSS where the user inputs an equation, and the resulting line is plotted on a Cartesian plane.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It includes the HTML structure, CSS for styling, and JavaScript to handle the coordinate mapping and mathematical evaluation.\n\nYou can save this code as an `.html` file (e.g., `graph.html`) and open it in any browser.\n\n```html\n<!DOCTYPE html>\n<html lang=\"... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a text-based inventory simulator in HTML/JS/CSS where items can be added, removed, and sorted in a visible list.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `inventory.html`) and open it in any web browser.\n\nIt features a retro \"terminal\" aesthetic, item stacking (if you add an item that already exists, the quantity increases), individual removal, and sorting capa... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic visualizer for prime numbers in HTML/JS/CSS that highlights multiples of selected numbers on a grid.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript needed to create the visualizer.\n\nYou can save this code as an `.html` file (e.g., `primes.html`) and open it in any web browser.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple \"connect four\" game in HTML/JS/CSS where two players drop colored discs into a vertical grid to get four in a row.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript required to play Connect Four.\n\nYou can save this code as an `.html` file (e.g., `connect4.html`) and open it in any web browser.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D survival game in HTML/JS/CSS where the player must gather wood and stone to survive the night.",
"role": "user"
} | {
"content": "Here is a complete, single-file 2D survival game. I have designed it to be played directly in your browser. It features resource gathering, building, a day/night cycle, dynamic lighting, and enemy waves.\n\nSave the code below as an `.html` file (e.g., `survival.html`) and open it in any modern web brow... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic simulation of planetary orbits in HTML/JS/CSS showing one central star and a few orbiting bodies.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It uses **HTML5 Canvas** for rendering and **Newtonian Physics** (gravity) for the simulation logic.\n\nI have implemented a \"fading trail\" effect so you can visualize the orbital paths.\n\n### How to use this:\n1. Copy the code below.\n2. Save it as an `.ht... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple memory test in HTML/JS/CSS where the user recalls a sequence of flashing lights.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `memory-game.html`) and open it in any web browser to play.\n\nIt uses a **Simons Says** style logic:\n1. The game flashes a sequence.\n2. You repeat the sequence by clicking the panels.\n3. If correct, the sequen... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down exploration game in HTML/JS/CSS where the player reveals fog-of-war as they move around a small map.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It generates a random cave-like map, handles grid-based player movement, and implements a **Raycasting Field of View** system to simulate the Fog of War.\n\nYou can save this code as an `.html` file (e.g., `game.html`) and open it in any browser.\n\n```html\n<!D... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic physics sandbox in HTML/JS/CSS where the user can drop various shapes that interact realistically under gravity.",
"role": "user"
} | {
"content": "This is a complete, single-file solution. It uses **Matter.js**, a popular and lightweight 2D physics engine for JavaScript, to handle the heavy lifting of collision detection and gravity.\n\n### How to use this:\n1. Copy the code below.\n2. Save it as an `.html` file (e.g., `physics.html`).\n3. Open... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple calculator in HTML/JS/CSS that handles basic arithmetic operations (+, -, *, /).",
"role": "user"
} | {
"content": "Here is a complete, simple, and stylish calculator. I have separated the code into **HTML**, **CSS**, and **JavaScript** sections for clarity, but you can put them all in a single `.html` file to run it immediately.\n\n### 1. HTML (`index.html`)\nThis defines the structure: a screen and a grid of button... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic soundboard in HTML/JS/CSS where clicking different buttons plays distinct audio clips.",
"role": "user"
} | {
"content": "Here is a complete, copy-pasteable solution. I have designed this to be a single file for easy testing, but you can separate the CSS and JS into their own files if you prefer.\n\n### Features included:\n1. **Rewind-to-start:** If you click a button rapidly, it restarts the sound immediately (good for s... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a side-view digging game in HTML/JS/CSS where the player mines downwards, collecting different types of rare ores.",
"role": "user"
} | {
"content": "Here is a complete, playable \"Mining Game\" contained in a single HTML file.\n\nIt features:\n* **Procedural Generation:** Ores become more valuable (and rarer) the deeper you dig.\n* **Camera System:** The view follows the player as they descend.\n* **Inventory/Score:** Tracks the value of mater... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple digital clock in HTML/JS/CSS that displays the current time and updates every second.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It includes the HTML structure, CSS for styling (making it look like a glowing digital display), and the JavaScript logic to update the time.\n\nYou can save this code as an `.html` file (e.g., `clock.html`) and open it in any web browser.\n\n```html\n<!DOCTYPE ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a tile-based puzzle in HTML/JS/CSS where the player rotates segments of a pipe network to connect a source to a destination.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript. I have designed it to be modern, responsive, and visually clear.\n\n### Features\n1. **Procedural Generation:** It creates a random, solvable puzzle every time you play.\n2. **Fluid Mechanics:** Pipes fill with \"water\" (c... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down collection game in HTML/JS/CSS where the player drives a slow vehicle to gather scattered fuel cells before running out of gas.",
"role": "user"
} | {
"content": "Here is a complete, single-file source code for the game. I have designed the physics to give the vehicle a \"heavy\" feel (slow acceleration, sliding turns) to make the gameplay about trajectory planning.\n\n### How to Play\n1. Copy the code below.\n2. Save it as an `.html` file (e.g., `truck_game.ht... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic visual editor for CSS styles in HTML/JS/CSS where changing inputs immediately updates a sample box's appearance.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript needed to create a live Visual CSS Editor.\n\nYou can save this code as an `.html` file (e.g., `editor.html`) and open it in any web browser.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D grappling hook game in HTML/JS/CSS where the player fires a hook onto a surface to swing across gaps.",
"role": "user"
} | {
"content": "Here is a complete, playable 2D grappling hook game contained in a single HTML file.\n\nIt uses **Verlet-style constraints** for the rope physics (making it feel rigid rather than rubbery) and includes momentum conservation, air control, and collision detection.\n\n### Instructions\n1. **Copy** the cod... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a visual representation of a binary counter in HTML/JS/CSS that increments by one every time a button is pressed.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It uses **HTML** for structure, **CSS** for a glowing \"neon\" aesthetic, and **JavaScript** to handle the binary logic and state updates.\n\nYou can save this code as an `.html` file (e.g., `binary-counter.html`) and open it in any web browser.\n\n```html\n<!DO... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple word scramble game in HTML/JS/CSS where the player rearranges scrambled letters to form a valid word.",
"role": "user"
} | {
"content": "Here is a complete, playable Word Scramble game. It includes HTML for the structure, CSS for the styling, and JavaScript for the game logic (scrambling words, checking answers, timer, and score).\n\nYou can save the code below into a single file named `index.html` and open it in your browser.\n\n```html... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a very basic simulation of cellular automata like Conway's Game of Life in HTML/JS/CSS.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It is designed to be \"very basic\" so the code is easy to read and modify, but it is fully functional.\n\nIt uses **CSS Grid** for the layout and vanilla **JavaScript** for the logic.\n\n### How to use this:\n1. Copy the code below.\n2. Save it as an `.html` ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down asteroid avoidance game in HTML/JS/CSS where the player moves a small ship to dodge incoming space debris.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It includes the HTML structure, CSS styling, and JavaScript logic to create a smooth, top-down asteroid dodging game.\n\n### How to use:\n1. Copy the code block below.\n2. Create a new file on your computer named `index.html`.\n3. Paste the code into that fil... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple online whiteboard in HTML/JS/CSS that allows multiple users (simulated by different colors) to draw simultaneously.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `whiteboard.html`) and open it in any browser.\n\n**How this works:**\n1. **The Human User:** Draws using the mouse or touch (default color: Black).\n2. **The Simulated User (Bot):** A script that automatically ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic stock market simulator in HTML/JS/CSS where a stock price randomly fluctuates, and the player buys/sells.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `market.html`) and open it in any web browser.\n\nIt features a live canvas chart, a portfolio tracker, and a random walk algorithm for the stock price.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D side-scroller in HTML/JS/CSS where the player must maintain a specific altitude range to collect floating power-ups.",
"role": "user"
} | {
"content": "Here is a complete, single-file HTML/JS/CSS solution. I have designed it with a \"Neon/Cyberpunk\" aesthetic.\n\n**The Gameplay Mechanics:**\n1. **The Player:** A neon triangle affected by gravity. Press **Spacebar** or **Click** to fly up.\n2. **The Zone (The Stream):** A moving green energy stream t... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple text-based role-playing game in HTML/JS/CSS focused entirely on combat encounters.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It includes the **HTML** for structure, **CSS** for the \"retro terminal\" look, and **JavaScript** for the combat logic.\n\n### How to use this:\n1. Copy the code below.\n2. Create a new file on your computer named `rpg.html`.\n3. Paste the code into that fi... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a digital version of tic-tac-toe in HTML/JS/CSS where a player wins by getting three X's or O's in a row.",
"role": "user"
} | {
"content": "Here is a complete, fully functional Tic-Tac-Toe game. I have separated the code into **HTML**, **CSS**, and **JavaScript** sections.\n\nYou can save these into separate files (`index.html`, `style.css`, `script.js`) or combine them into a single HTML file.\n\n### 1. HTML (`index.html`)\nThis sets up th... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple animation sequencing tool in HTML/JS/CSS where users can trigger predefined sequences of visual events.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It uses the **Web Animations API**, which is the modern, native, and high-performance way to handle sequencing in JavaScript without needing heavy external libraries.\n\nI have designed this to be modular so you can easily add your own sequences.\n\n### The Tool... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down endless flappy-bird-like game in HTML/JS/CSS where the player taps to keep their object between two scrolling barriers.",
"role": "user"
} | {
"content": "Here is a complete, single-file HTML game.\n\n### The Concept\nSince Flappy Bird is side-scrolling (Gravity pulls down, Tap pushes up), a **Top-Down** version translates the physics to the horizontal axis:\n1. **\"Gravity\" (Wind):** A constant force pushes the player to the **Left**.\n2. **Tap:** Pus... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic password strength checker in HTML/JS/CSS that analyzes user input for length and character types.",
"role": "user"
} | {
"content": "Here is a complete, standalone solution containing HTML, CSS, and JavaScript. You can save this as an `.html` file (e.g., `index.html`) and open it in your browser.\n\n### Key Features:\n1. **Visual Strength Meter:** A progress bar that changes color (Red $\\rightarrow$ Yellow $\\rightarrow$ Green).\n2... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a visualizer for the Fibonacci sequence in HTML/JS/CSS using growing squares or rectangles.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution (HTML, CSS, and JS) that visualizes the Fibonacci sequence.\n\nIt uses the **Golden Rectangle** approach, where squares spiral outward. It includes an automatic \"camera\" system that zooms out as the squares grow exponentially large, ensuring the spiral always f... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D space station building game in HTML/JS/CSS where modules must be connected in a stable configuration.",
"role": "user"
} | {
"content": "Here is a complete, playable 2D Space Station building game contained in a single HTML file. It uses the HTML5 Canvas for rendering and JavaScript for logic.\n\n### Features\n* **Module System:** Different modules (Core, Corridor, Solar Array, Emitter, Airlock) with specific connection points.\n* **... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic click-and-drag interface in HTML/JS/CSS where users can move labeled boxes around a static background.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript. You can save this as an `.html` file (e.g., `drag-drop.html`) and open it in any browser.\n\nThe code uses **Vanilla JavaScript** (no libraries) and relies on standard Mouse Events (`mousedown`, `mousemove`, `mouseup`) for th... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down fishing game in HTML/JS/CSS where the player casts a line and must reel in fish of varying point values.",
"role": "user"
} | {
"content": "Here is a complete, playable top-down fishing game contained in a single HTML file.\n\nIt includes the game engine, graphics (rendered via Canvas API), and game logic.\n\n### How to Play:\n1. **Aim:** Move your mouse to aim the rod.\n2. **Cast:** Click anywhere on the water to cast your line to that s... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple image manipulator in HTML/JS/CSS that allows users to apply a basic grayscale filter to an uploaded image.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It allows you to upload an image, renders it onto a HTML5 Canvas, and performs pixel-level manipulation to convert it to grayscale.\n\nI have also added a \"Download\" feature so you can save the result.\n\n### How to use\n1. Copy the code below.\n2. Save it a... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a very simple traffic light simulation in HTML/JS/CSS that cycles automatically through red, yellow, and green.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `traffic-light.html`) and open it in any web browser.\n\nIt uses **HTML** for the structure, **CSS** for the styling (and the \"glow\" effect), and **JavaScript** to handle the timing logic.\n\n```html\n<!DOCTYPE ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D platformer in HTML/JS/CSS where the player must utilize bouncy surfaces to reach high ledges.",
"role": "user"
} | {
"content": "Here is a complete, playable 2D platformer contained in a single HTML file. It features a physics engine, collision detection, and specific logic for \"Bouncy\" platforms (trampolines) to reach high areas.\n\nYou can save the code below as an `.html` file (e.g., `game.html`) and open it in any browser.\... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic chord progression player in HTML/JS/CSS where clicking a button plays a sequence of four musical chords.",
"role": "user"
} | {
"content": "Here is a complete, standalone solution using HTML, CSS, and vanilla JavaScript.\n\nIt uses the **Web Audio API**, which is built into all modern browsers. This means it generates the sound synthetically (like a synthesizer) rather than loading MP3 files, making it instant and lightweight.\n\nThe progre... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down dungeon crawler in HTML/JS/CSS where the player explores rooms connected by randomly generated hallways.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution (HTML, CSS, and JS) for a randomly generated top-down dungeon crawler.\n\nThis implementation features:\n1. **Procedural Generation**: Places random rooms and connects them with \"L-shaped\" hallways.\n2. **Collision Detection**: The player cannot walk through ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a visualization of a simple sorting algorithm like Bubble Sort in HTML/JS/CSS using colored bars.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript. You can save this code as an `.html` file (e.g., `sorting.html`) and open it in any web browser.\n\n### Key Features:\n1. **Visual Feedback:**\n * **Turquoise:** Default state.\n * **Red:** Elements currently being... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple password generator in HTML/JS/CSS that creates random strings based on user-selected criteria (length, symbols).",
"role": "user"
} | {
"content": "Here is a clean, modern, and simple Password Generator. It is contained within a single file structure for easy copy-pasting, but I have separated the HTML, CSS, and JavaScript sections so you can see how they interact.\n\n### The Solution\n\nYou can save this code as an `.html` file (e.g., `password_ge... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D reaction time tester in HTML/JS/CSS where the player must click a target the instant it changes color from gray to green.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `reaction.html`) and open it in any web browser.\n\nIt uses a **State Machine** approach to handle the game logic (Waiting, Ready, Result, and Too Early).\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic flowchart diagram tool in HTML/JS/CSS where users can connect predefined shapes with arrows.",
"role": "user"
} | {
"content": "This is a complete, single-file solution. It uses **SVG** for the connecting lines (arrows) and standard **HTML Divs** for the shapes. No external libraries are required.\n\n### Features Included:\n1. **Drag and Drop:** Drag shapes from the sidebar onto the canvas.\n2. **Move:** Drag existing shapes a... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a text-based guessing game in HTML/JS/CSS where the user tries to guess a randomly chosen word one letter at a time.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `wordgame.html`) and open it in any web browser.\n\nIt features a clean interface, on-screen keyboard, physical keyboard support, and win/loss logic.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <m... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down game in HTML/JS/CSS where the player controls a small vehicle tasked with moving packages from one depot to another.",
"role": "user"
} | {
"content": "Here is a complete, playable top-down delivery game contained within a single HTML file. You can save this code as an `.html` file (e.g., `delivery-game.html`) and open it in any modern web browser.\n\n### Features\n* **Car Physics:** Acceleration, friction, and rotation (tank controls).\n* **Game L... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple form validation exercise in HTML/JS/CSS that checks for correct email format and required fields.",
"role": "user"
} | {
"content": "Here is a complete, simple exercise. It includes a contact form with a Name field (required) and an Email field (required + format check).\n\nYou can save this as a single `.html` file, or separate the CSS and JS as indicated.\n\n### 1. The HTML structure\nWe create a form with `id=\"form\"`. Notice we ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D physics game in HTML/JS/CSS where the player launches projectiles to knock down towers made of blocks.",
"role": "user"
} | {
"content": "Here is a complete, single-file HTML game. It uses **Matter.js**, a popular and lightweight 2D physics engine for JavaScript, to handle the realistic collisions, gravity, and structural stability.\n\nSave the following code as an `.html` file (e.g., `game.html`) and open it in your browser.\n\n```html\n... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic data table editor in HTML/JS/CSS that allows inline editing of cell contents.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution using **Vanilla JavaScript**, **CSS**, and **HTML**.\n\nIt implements a \"CRUD\" (Create, Read, Update, Delete) table where you can click any cell to edit it, press Enter to save, and add/remove rows.\n\n### The Solution\n\nYou can save this code as an `.html` fi... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple visualizer for the Mandelbrot set in HTML/JS/CSS, showing the basic fractal shape.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `mandelbrot.html`) and open it in any web browser.\n\nIt uses the HTML5 `<canvas>` element for high-performance pixel manipulation and standard JavaScript to calculate the math.\n\n```html\n<!DOCTYPE html>\n<html ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a text-based story generator in HTML/JS/CSS that combines pre-written sentence fragments randomly.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save the code below as an `.html` file (e.g., `story.html`) and open it in any web browser.\n\nIt uses four distinct \"buckets\" of sentence fragments (Opening, Character, Action, and Conclusion) to ensure the generated text always follows a logical narr... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down maze game in HTML/JS/CSS where the player must collect three keys before the timer runs out.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript required to run the game.\n\nThe game features:\n* **Procedural Maze Generation:** A new maze is created every time using a depth-first search algorithm (Recursive Backtracker).\n* **Game Loop:** Handles the countdown ... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple CSS animation playground in HTML/JS/CSS where users can adjust parameters controlling a looping movement.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript. You can save this as an `.html` file (e.g., `animation-playground.html`) and open it in any browser.\n\nIt uses **CSS Variables** to bridge the gap between the JavaScript sliders and the CSS Keyframes, allowing for instant, s... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D endless jumper in HTML/JS/CSS where the player continuously jumps upwards, avoiding platforms with spikes.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript required to play the game.\n\nI have designed it with a \"Doodle Jump\" style mechanic:\n1. **Green Box:** The Player (auto-bounces).\n2. **Black Bars:** Safe platforms.\n3. **Red Bars:** Spikes (Game Over if you land o... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic color picker tool in HTML/JS/CSS that displays the RGB and Hex codes for the selected color.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing the HTML, CSS, and JavaScript. You can save this code as an `.html` file (e.g., `colorpicker.html`) and open it in your browser.\n\n### The Code\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"vie... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a top-down survival game in HTML/JS/CSS where the player must keep a central energy source powered by collecting batteries.",
"role": "user"
} | {
"content": "Here is a complete, playable top-down survival game contained in a single HTML file.\n\n### How to Play\n1. **Save the code** below as an `.html` file (e.g., `energy-survival.html`).\n2. **Open it** in any web browser.\n3. **Controls:**\n * **Movement:** WASD or Arrow Keys.\n * **Goal:** Th... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple form with dynamic input masking in HTML/JS/CSS, such as for phone numbers or credit cards.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution using vanilla HTML, CSS, and JavaScript. It contains no external libraries, making it easy to understand and integrate.\n\nIt includes two examples:\n1. **US Phone Number:** `(123) 456-7890`\n2. **Credit Card:** `1234 5678 1234 5678`\n\n### Complete Code\n\nSav... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 2D asteroid-like game in HTML/JS/CSS where the player ship can rotate and thrust to maneuver.",
"role": "user"
} | {
"content": "Here is a complete, playable Asteroids-style game contained in a single HTML file. It uses the HTML5 `<canvas>` for rendering and vanilla JavaScript for the physics engine.\n\n### How to play:\n1. Save the code below as an `.html` file (e.g., `asteroids.html`).\n2. Open it in any modern web browser.\n... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a basic tag cloud generator in HTML/JS/CSS where word size is proportional to a given frequency value.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript.\n\nThis solution uses **Linear Interpolation** to map the raw frequency count to a specific font size range (e.g., between 16px and 60px). This ensures that even if your counts are `1,000` and `10,000`, the text doesn't becom... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a visualization of network packet flow in HTML/JS/CSS between three static nodes.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. You can save this code as an `.html` file (e.g., `network.html`) and open it in any modern browser.\n\nIt uses **SVG** for the connection lines, **CSS** for styling the nodes, and the **Web Animations API** in JavaScript for smooth, high-performance packet movem... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a simple timer application in HTML/JS/CSS that can function as a stopwatch or a countdown timer.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution containing HTML, CSS, and JavaScript. You can save this code as an `.html` file (e.g., `timer.html`) and open it in any web browser.\n\nIt features a dark-mode interface, tab switching between Stopwatch and Countdown, and handles input validation.\n\n```html\n<!D... |
{
"content": "",
"role": "system"
} | {
"content": "Generate a 3D wireframe cube in HTML/JS/CSS that rotates continuously around the X and Y axes.",
"role": "user"
} | {
"content": "Here is a complete, single-file solution. It uses **CSS 3D Transforms** for the rendering (which is performant and smooth) and **JavaScript** to dynamically generate the cube structure and inject it into the DOM.\n\nYou can save this code as an `.html` file (e.g., `cube.html`) and open it in any browser... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.