Skip to main content
Formal Specification

Taiwanese Card Slapping (Round Picture Cards) — Formal Specification

Taiwan · dexterity-small · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: probabilistic-proxyGap-fills: 3
# Ang-a-phiau — AI-optimized specification ## General idea A traditional cardboard disk collection and flipping game played with serrated circular cards printed with folk opera characters, poker ranks, chess pieces, and rock-paper-scissors icons. Players stake cards into a shared pool and take turns using striking cards to flip opponent cards via air drafts and direct physical impacts, or challenge opponents to simultaneous corner-symbol showdowns to win the pot. ## Formal model - **Abstraction taken:** Physical slapping dynamics (wrist whip, air pressure wave, disk bounce) are modeled as an angle-and-force action resolving to a disk flip probability conditioned on disk thickness, surface friction, and distance. Corner symbol comparisons resolve deterministically. - **Player/agent count:** 2 to 6 players (default 2 or 4). - **Turn model:** Sequential round-robin striking turns following an initial stake phase; or simultaneous secret-bid showdown rounds. ## Formal rules R1. **Card Attributes:** Every card C has: - `id`: unique identifier. - `rps_symbol`: ∈{Rock, Paper, Scissors}. - `chess_rank`: ∈{General (7), Advisor (6), Elephant (5), Chariot (4), Horse (3), Cannon (2), Soldier (1)}, where Soldier beats General. - `poker_rank`: ∈[1..13] (Ace to King). - `zodiac_num`: ∈[1..12]. - `face_state`: ∈{Face-Down, Face-Up}. - `owner`: Player ID. R2. **Setup & Staking:** Each player stakes k≥1 cards into the central `pot`. In the standard *Slapping & Flipping* mode, all staked cards are placed `Face-Down` in a designated circle of radius R=25 cm. R3. **Striking Action:** On a player's turn, the active player chooses one of their held master cards (*chú-phiau*) and specifies a strike target coordinate (x,y) and strike force F∈[1,100]. R4. [gap-fill] **Flip Resolution Function:** For each card ci in the pot at distance di=‖(x,y)−pos(ci)‖, the probability Pflip(ci) that ci flips face-up is: Pflip(ci)=max⁡(0,F100⋅exp⁡(−di22σstrike2)−μweight) If a random sample U∼𝒰(0,1)≤Pflip(ci), card ci flips to `Face-Up` and is transferred to the striker's hand. R5. **Bonus Turn / Turn Passing:** If the striker successfully flips and captures at least one card, their turn continues (up to a maximum of 3 consecutive strikes). Otherwise, the turn passes clockwise to the next player. R6. **Corner Showdown Variant (*Four-Symbols Duel*):** Players secretly select 1 card from hand. An agreed attribute category A∈{RPS, Chess, Poker, Zodiac} is evaluated simultaneously: - RPS: standard circular dominance (Rock>Scissors>Paper>Rock). - Chess: higher numerical rank wins, except Soldier (1) defeats General (7). - Poker: higher rank wins (13>12>⋯>1). - Zodiac: higher value wins (12>11>⋯>1). The winning player captures all played cards in the duel. In case of a tie, stakes roll over into the next showdown. R7. [gap-fill] **Game End & Victory:** The game ends when all pot cards have been captured, or when a player's hand reaches zero cards in an elimination match. The player holding the greatest total card count wins. R8. [gap-fill] **Turn Limit Draw Guard:** If 5 consecutive rounds pass without a single card captured from the pot, remaining pot cards are returned equally to surviving players, and rankings are evaluated based on cards held. ## Edge cases - **Tie at the end condition:** If two players finish with identical card counts, rank is broken by summing the `poker_rank` values of all captured cards. - **A player with no legal move:** A player with 0 cards in hand who has exhausted all strikes is eliminated from active rounds. - **Repetition / cycles:** A stalled pot with low flip probabilities is terminated deterministically by R8 (5 scoreless rounds). - **Simultaneous claims on the same resource or position:** In showdown duels with matching tie ranks, the tied cards form a contested pot awarded to the winner of the subsequent tie-break showdown. - **Player elimination mid-round:** When a player loses their last card, they drop out; turn order skips them and continues clockwise without re-indexing surviving players. - **Resource exhaustion:** Total cards in play is conserved; cards transfer between player inventories and the pot without duplication or loss. - **Termination guarantee:** Guaranteed by finite cards in the pot and the 5-round scoreless stalemate cap (R8). ## State representation - **Persistent state:** - `players`: array of `{id, hand_card_ids, cards_captured_count}`. - `pot_cards`: array of `{card_id, x, y, face_state}`. - `turn_index`: active player index. - `consecutive_strikes`: integer in [0..3]. - `stagnant_turns_counter`: integer in [0..5]. - **Per-turn state:** - `selected_striker_card_id`. - `strike_target`: (x,y). - `strike_force`: integer in [1..100]. - **Observable information:** Fully observable in physical slapping mode; partially observable in secret showdown mode until cards are simultaneously revealed. ## Action space - `strike_pot(striker_card_id, target_x, target_y, force)`: - *Preconditions:* Active player's turn, `striker_card_id` in player hand, F∈[1,100]. - `play_showdown_card(card_id)`: - *Preconditions:* Secret showdown phase, `card_id` in player hand. ## Playability notes - **Single-player-vs-AI:** Highly playable; AI evaluates strike point clustering to maximize expected value ∑Pflip(ci) or computes minimax payoffs in showdown guessing games. - **Group games (n>4):** Supports 2 to 6 players natively in pot-striking rotation or multiplayer showdowns. - **Physical-skill games:** Physical striking is abstracted into choice of target location, force allocation, and striker disk selection. - **What is lost in the adaptation:** Physical card edge aerodynamics, custom disk crimping tricks, and table-surface texture variations. ## Implementation hints - Discrete 2D point cloud for pot card locations. The strike resolution loop takes under 1 microsecond. - Showdown duel mode is an exact matrix game easily solved by Nash equilibrium computation. - Suggested first milestone: Implement 2-player pot striking with Gaussian air-wave flip probability and capture accounting.

Download as JSON

Download the full game corpus entry for this game as structured JSON.

Download JSON
Cite this page

Taiwanese Card Slapping (Round Picture Cards) (Taiwan). (n.d.). Games of Countries. https://gamesofcountries.com/games/tw-taiwan/ang-a-phiau

@misc{gamesofcountries-tw-taiwan-ang-a-phiau,
  title = {Taiwanese Card Slapping (Round Picture Cards) (Taiwan)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/tw-taiwan/ang-a-phiau}
}