# Hunan Paohuzi Card Game

> Complete Hunan Paohuzi card game source code — 3-player real-time multiplayer (Shaoyang Zi Pai rules) with AI practice mode and Pi payments.

Hunan Paohuzi Card Game is a paid AI agent skill on Agensi by 无极, in Game Development. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $23 (one-time purchase)
- Creator: [无极](https://www.agensi.io/creators/creator-1330)
- Category: [Game Development](https://www.agensi.io/skills/game-development)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/hunan-paohuzi-card-game
- Tags: gaming, react, websocket, node-js, pi-network

## About this skill

Full source code for a Hunan Paohuzi (Shaoyang Zi Pai) card game. Includes a React client (solo play vs AI plus real 3-player multiplayer) and a Node.js game server. In-game coins can be bought with Pi payments. Deploy the client to any static host and run the server with Node.js. Live demo: https://wuji8889.github.io/hunan-paohuzi/

## Requires

- Node.js

## Known limitations

Stateless server resets rooms and balances on restart. No database included. Pi mainnet requires building a custom payment verification backend.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Hunan Paohuzi Card Game skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What exactly do I get with this Hunan Paohuzi skill?

This skill provides the full source code for a 3-player Shaoyang-style Zi Pai game, including a pre-coded rules engine that handles complex melds (Ti, Pong, Chow) and Hu Xi scoring automatically.

### Does the game support single-player mode against AI?

Yes, the package includes a solo mode with two AI opponents, allowing players to practice or play offline without needing a room code or other active users.

### What technical stack is required to deploy and run this game?

The client is built with React 18 and Vite, while the backend uses Node.js and WebSockets; it is fully compatible with the Pi Browser environment and standard web hosting.

### Is the Pi Network payment system ready to go out of the box?

While the client-side Pi SDK integration is included for payments and authentication, you will need your own developer credentials and a separate backend for Pi mainnet transaction verification.

### How does the multiplayer matching and room system work?

The multiplayer system uses a server-authoritative WebSocket architecture with 6-digit room codes, ensuring game state synchronization and preventing client-side cheating.

### Why should I buy this instead of building the rules engine from scratch?

This skill solves the difficulty of manual state management for 80 unique tiles and localized Shaoyang rules, saving you weeks of debugging illegal moves and scoring logic.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
