Skip to main content
Formal Specification

Pop-Culture Card Flipping Game — Formal Specification

Philippines · gambling-stake · Confidence: low

← Back to game page

Implementation Suitability

Suitability: engine-readyFidelity: directGap-fills: 2
# Teks — AI-optimized specification ## General idea A discrete wagering and card-flipping game between 2 agents. Each round, both agents contribute a fixed stake of cards to a pot. Three cards (Agent 0's pamato, Agent 1's pamato, and a Neutral card) are simultaneously flipped, landing in binary states: Face-Up (U) or Face-Down (D). If two cards share an orientation and one card differs (the "odd-card-out" / *cha-ba-cha*), the agent owning the unique odd card wins the entire pot. All-matching or Neutral-odd outcomes result in a draw (*tabla*), rolling the pot over to the next round. ## Formal model - **Abstraction taken:** Card flipping is formalized directly as a joint Bernoulli trial over 3 binary variables (C0,C1,CN)∈{0,1}3 where 1=Face-Up and 0=Face-Down. Individual card curvature/aerodynamic bias is parameterized by P(Ci=1)=pi. - **Player/agent count:** 2 agents (P0,P1) plus 1 neutral card (N). - **Turn model:** Simultaneous betting and stochastic throw resolution across sequential rounds. ## Formal rules R1. Setup: - Each agent Pi begins with a deck inventory Ki=50 cards [gap-fill]. - Active bet size per round is set to B=5 cards. - Global pot initialized: pot=0. R2. Wagering Phase: - Both agents commit B cards to the pot: - K0←K0−B, K1←K1−B, pot←pot+2B. R3. Card Flip Sampling: - The 3 cards (C0,C1,CN) are sampled independently: - C0∼Bernoulli(p0) (Player 0 pamato, p0∈[0.45,0.55]). - C1∼Bernoulli(p1) (Player 1 pamato, p1∈[0.45,0.55]). - CN∼Bernoulli(0.50) (Neutral card). R4. Outcome Evaluation (*Cha-Ba-Cha*): - Compute configuration (c0,c1,cN): - Case 1 (P0 wins): c0≠c1∧c0≠cN (i.e. c0 is the unique odd card). - P0 receives entire pot: K0←K0+pot, pot←0. - Case 2 (P1 wins): c1≠c0∧c1≠cN (i.e. c1 is the unique odd card). - P1 receives entire pot: K1←K1+pot, pot←0. - Case 3 (Draw / *Tabla*): cN is the odd card OR c0==c1==cN (all cards identical). - Pot remains in play (pot carries over to next round) [gap-fill]. R5. Match Termination: - If either player has Ki<B (bankruptcy), the game ends immediately; the player holding cards wins. - Hard round limit: Rmax⁡=100 rounds. If reached, the agent with larger bankroll Ki wins. ## Edge cases - Tie at the end condition: If both agents have equal cards at Rmax⁡, the match is a draw. - A player with no legal move: If an agent cannot afford the minimum bet B, bankruptcy is triggered automatically. - Repetition / cycles: The probability of an unending sequence of draws (*tabla*) decays exponentially (P(draw)n→0), guaranteeing stochastic termination. - Simultaneous claims on the same resource or position: The 3-card truth table is mutually exclusive; P0 and P1 can never both win on the same flip. - Player elimination mid-round: Handled formally via bankruptcy condition Ki<B. - Resource exhaustion: Total cards K0+K1+pot=100 is strictly conserved. - Termination guarantee: Enforced by the martingale absorption probability of finite bankroll betting and hard cap Rmax⁡=100. ## State representation - Persistent state: - `bankroll_P0`: integer (0..100). - `bankroll_P1`: integer (0..100). - `accumulated_pot`: integer. - `pamato_bias`: array of 2 floats (p0,p1). - `round_counter`: integer 1..100. - Observable information: Fully observable public state (all bankrolls and flip outcomes are public). ## Action space - `place_bet(amount)`: integer B∈[1,min⁡(K0,K1)]. - `select_pamato(bias_profile)`: choice of card profile before flipping. ## Playability notes - Single-player-vs-AI: Directly simulable as an arcade bankroll management and risk wagering game. - Group games (n>4): Can expand to 3 active players using 4-card flip configurations. - Physical-skill games: Wrist flick aerodynamics are parameterized via slight variations in pi. - What is lost in the adaptation: The tactile street culture of card trading, inspecting bent card edges, and bragging rights. ## Implementation hints Discrete probability distribution over 23=8 binary configurations. Each round evaluates in O(1) operations. First milestone: Implement 2-player simulation loop with 8-state truth table to verify long-term bankroll absorption rates.

Download as JSON

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

Download JSON
Cite this page

Pop-Culture Card Flipping Game (Philippines). (n.d.). Games of Countries. https://gamesofcountries.com/games/ph-philippines/teks

@misc{gamesofcountries-ph-philippines-teks,
  title = {Pop-Culture Card Flipping Game (Philippines)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/ph-philippines/teks}
}