prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub

Match-3 Puzzle Game: Create a standalone HTML file containing CSS and JavaScript to generate a classic 8x8 grid match-3 game.

Match-3 Puzzle Game: Create a standalone HTML file containing CSS and JavaScript to generate a classic 8x8 grid match-3 game. The game needs to showcase the following core modules through a dynamic grid and click-and-swap interactions

邱
@loshu2003
10 months agoJanuary 29, 2026 at 02:37 AM
Coding•AI Tools

Content

Match-3 Puzzle Game: Create a standalone HTML file containing CSS and JavaScript to generate a classic 8x8 grid match-3 game. The game needs to showcase the following core modules through a dynamic grid and click-and-swap interactions: 1. **Game Board System**: Use CSS Grid layout to generate an 8x8 square game board, randomly assign a color to each square, and record the board state through a two-dimensional array. 2. **Core Interaction Logic**: Listen for click events on squares, implement the judgment and execution of position swapping between adjacent (up, down, left, right) squares. 3. **Elimination Judgment and Chain Reaction**: After swapping, traverse the game board to detect whether there are three or more consecutive squares of the same color in the horizontal or vertical direction, eliminate them and accumulate scores; after elimination, trigger the squares above to fall, generate new squares at the top, and loop the detection until no more eliminations can be made. 4. **Scoring and State Management**: Implement a scoring system (e.g., 10 points for each eliminated square), update the score display in real-time, and can be extended with game timing and end judgment. 
 The interface should adopt a bright and lively cartoon style, and the code should be integrated into a single file.

Related Prompts

Memory Card Game

Text

Develop a memory matching card game

F@f
0

Sudoku Game

Text

Create an interactive Sudoku game

F@f
0

Related Skills

Cross-Platform 3D App Development Master

Skill

Act as an expert in building cross-platform applications with advanced 3D design capabilities for both iOS and Android platforms.

ö@yaman0786
0

seo-fundamentals

Skill

SEO fundamentals, E-E-A-T, Core Web Vitals, and 2025 Google algorithm updates

M@xenitv1
0

Related Bots

Repo Archaeologist

Bot

Answers 'why on earth is this code like this?' by digging through git history, old PRs and issues, and writes the backstory of any file or function in plain English.

F@f0

Comments (0)

Chess Game

Text

Develop a feature-rich chess game

F@f
0

Interactive Quiz

Text

Develop a comprehensive interactive quiz application

F@f
0

AST Code Analysis Superpower

Skill

AST-based code pattern analysis using ast-grep for security, performance, and structural issues. Use when (1) reviewing code for security vulnerabilities, (2) analyzing React hook dependencies or performance patterns, (3) detecting structural anti-patterns across large codebases, (4) needing systematic pattern matching beyond manual inspection.

İ@izzetemre
1

AWS Cloud Expert

Skill

Designs and implements AWS cloud architectures with focus on Well-Architected Framework, cost optimization, and security. Use when: 1. Designing or reviewing AWS infrastructure architecture 2. Migrating workloads to AWS or between AWS services 3. Optimizing AWS costs (right-sizing, Reserved Instances, Savings Plans) 4. Implementing AWS security, compliance, or disaster recovery 5. Troubleshooting AWS service issues or performance problems

İ@izzetemre
1