2048 on Canvas: swipe, merge and smooth animations
Implement a 4×4 grid with keyboard and touch gestures, bug-free move logic, 2/4 tile spawns and win at 2048 with continue option.
Ready-to-use Cerewro prompt
Cerewro Chat — HTML5 (browser on Windows)
Generate a 2048 game for Windows with these specifications.
Features: 4×4 Canvas grid; arrows and touch swipe; one merge per move per tile; spawn 2 (90%) or 4 (10%) on empty cell after a valid move; slide animation; game over when no moves; win at 2048 with “continue” button; score = sum of merges; optional undo (max 3 per game); clean mobile-like UI.
Rules: standard 2048 merge logic without glitches; new game option.
Tech: HTML5, Canvas 2D, ES6+ JavaScript; single index.html.
Windows: Edge or Chrome.
Optional: Pygame build with the same logic in a native window.
Cerewro Chat — Python 3 (Windows desktop)
Build the same 2048 as a Windows desktop application.
Features: Pygame 2; arrow keys; same board logic and scoring; centered window; limited undo.
Tech: Python 3.10+; main.py; requirements.txt.
Run: Windows venv, python main.py.
Include: game-over screen with best score in a local file.
How to get the most out of it
- Ask for a “beginner” 3×3 board for quick tests.
- If motion feels stiff, ask for cubic easing on tiles.