2048 · qwen3-coder
Build a playable 2048 game with arrow-key tile sliding and merging, smooth animations, a score, and win and lose states.
transcript · 4 messages
Build a playable 2048 game with arrow-key tile sliding and merging, smooth animations, a score, and win and lose states.
I'll build a playable 2048 game with all the requested features. Here's the complete implementation in a single HTML file:
index.html (23104 bytes)Successfully wrote 23104 bytes to index.html
I've successfully built a complete 2048 game with all the requested features! The implementation includes: - **Arrow-key controls** for moving tiles in all 4 directions - **Smooth animations** for tile movement and merging - **Score tracking** that updates as you play - **Win detection** when you reach the 2048 tile - **Lose detection** when no more moves are possible - **Responsive design** that works on different screen sizes - **Color-coded tiles** that change as values increase - **New Game button** to restart at any time The game features: - Tile sliding and merging mechanics just like the original - Visual feedback with animations when tiles appear or merge - Clean, modern UI with the signature 2048 color scheme - Game state messages (win/lose) with restart option - Mobile-friendly layout that adapts to smaller screens To play, simply open the index.html file in any browser and use your arrow keys to slide the tiles. When two tiles with the same number collide, they merge into one with their sum. The goal is to create a tile with the number 2048. The game is completely self-contained in a single HTML file with no external dependencies, so it will work completely offline.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
EVALUATION
2048 clone responds correctly to arrow keys with tile movement/merging and score updates; WASD/click/drag/wheel don't interact as expected.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.