Hunan Paohuzi Card Game

    by 无极

    1

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

    $23

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Hunan Paohuzi Card Game

    Example session with this skill installed

    I need to set up a local test of the multiplayer server and see how the coin packs are priced for the Pi shop.

    • Read your context and instructions
    • Compiled the hunan paohuzi card

    The multiplayer server is a Node.js application located in game/server/. You can run it locally and inspect the config.js file for coin pricing.

    Server Setup and Configuration

    // game/client/src/config.js
    // Configuration for Pi Network and Game Economy
    
    export const SERVER_URL = 'ws://localhost:3001';
    export const PI_NETWORK = 'testnet';
    
    export const START_COINS = 4000;
    export const QUICK_FEE = 100;
    
    // Pi Shop Pricing (1,000 coins = 0.1 Pi)
    export const COIN_PACKS = [
      { amount: 1000, pi: 0.1 },
      { amount: 6000, pi: 0.5 },
      { amount: 13000, pi: 1.0 }
    ];
    
    export const ROOM_FEES = [0, 100, 500];
    

    To run the server locally for testing

    1. Navigate to the server directory: cd game/server
    2. Install the WebSocket dependency: npm install
    3. Start the server: node server.js
    4. Run the integration test to simulate 3 players: npm test

    Next steps

    • Update SERVER_URL in the client config to match your local IP or localhost.
    • Launch the React client using npm run dev to connect to the local server.
    • Verify the 6-digit room code generation by opening the game in multiple browser tabs.

    Connects securely to your tools. The creator never sees your data.

    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/

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

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 15 days ago

    Software
    Node.js

    Permissions

    Terminal / Shell
    Environment Variables
    Listed15 days ago

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

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

    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.

    New in Game Development

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Game Development.