tiki-topple-backend
CommunityBuild a validated real-time game backend.
System Documentation
What problem does it solve?
This Skill provides an end-to-end blueprint for implementing the validated real-time backend logic for a turn-based stacking board game, ensuring the server remains the single source of truth for game state.
Core Features & Use Cases
- Authoritative Game Engine: Defines immutable
GameStateupdates for MOVE and REORDER while enforcing turn order, stack rules (top-only), forward-only movement, and end conditions (finish line or max turns). - Strict Server-Side Validation: Specifies a
validateAction()checklist with exact error codes and guardrails to prevent illegal moves and cheating from client input. - Socket.io Multiplayer + AI Turn Handling: Establishes a socket event contract, room broadcast flow, and server-only heuristic AI move generation with a human-feeling delay.
Quick Start
Implement the backend by first creating src/game/types.ts and the pure core functions in src/game/logic.ts, then implement src/game/validator.ts to enforce the non-negotiable rules, and finally wire src/socket/handlers.ts to accept game_action events and broadcast state_update and game_over using the required event names and error codes.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tiki-topple-backend Download link: https://github.com/divyadeepmishra/Board2Code/archive/main.zip#tiki-topple-backend Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.