Formal Specification
Pop-Culture Card Flipping Game — Formal Specification
Philippines · gambling-stake · Confidence: low
← Back to game pageImplementation 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 () or Face-Down (). 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 where and . Individual card curvature/aerodynamic bias is parameterized by .
- **Player/agent count:** 2 agents () plus 1 neutral card ().
- **Turn model:** Simultaneous betting and stochastic throw resolution across sequential rounds.
## Formal rules
R1. Setup:
- Each agent begins with a deck inventory cards [gap-fill].
- Active bet size per round is set to cards.
- Global pot initialized: .
R2. Wagering Phase:
- Both agents commit cards to the pot:
- , , .
R3. Card Flip Sampling:
- The 3 cards are sampled independently:
- (Player 0 pamato, ).
- (Player 1 pamato, ).
- (Neutral card).
R4. Outcome Evaluation (*Cha-Ba-Cha*):
- Compute configuration :
- Case 1 ( wins): (i.e. is the unique odd card).
- receives entire pot: , .
- Case 2 ( wins): (i.e. is the unique odd card).
- receives entire pot: , .
- Case 3 (Draw / *Tabla*): is the odd card OR (all cards identical).
- Pot remains in play ( carries over to next round) [gap-fill].
R5. Match Termination:
- If either player has (bankruptcy), the game ends immediately; the player holding cards wins.
- Hard round limit: rounds. If reached, the agent with larger bankroll wins.
## Edge cases
- Tie at the end condition: If both agents have equal cards at , the match is a draw.
- A player with no legal move: If an agent cannot afford the minimum bet , bankruptcy is triggered automatically.
- Repetition / cycles: The probability of an unending sequence of draws (*tabla*) decays exponentially (), guaranteeing stochastic termination.
- Simultaneous claims on the same resource or position: The 3-card truth table is mutually exclusive; and can never both win on the same flip.
- Player elimination mid-round: Handled formally via bankruptcy condition .
- Resource exhaustion: Total cards is strictly conserved.
- Termination guarantee: Enforced by the martingale absorption probability of finite bankroll betting and hard cap .
## State representation
- Persistent state:
- `bankroll_P0`: integer ().
- `bankroll_P1`: integer ().
- `accumulated_pot`: integer.
- `pamato_bias`: array of 2 floats ().
- `round_counter`: integer .
- Observable information: Fully observable public state (all bankrolls and flip outcomes are public).
## Action space
- `place_bet(amount)`: integer .
- `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 .
- 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 binary configurations. Each round evaluates in 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 JSONCite 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}
}