Skip to main content
Formal Specification

Sacred Ball Scrum / Phet Festival Ball Contest — Formal Specification

Vietnam · ball-team · Confidence: low

← Back to game page

Implementation Suitability

Suitability: adaptation-requiredFidelity: discretizedGap-fills: 4
# Cướp phết — AI-optimized specification ## General idea Cướp phết is an ancient Vietnamese sacred ball contest and team scrum game. Two opposing village factions compete on a large open field to drive a solid wooden ball (*quả phết*) into the opponent's designated goal pit (*lò phết*) or across territorial boundaries. The game blends stick-striking tactics, positional zone control, and high-intensity scrum grappling to control and propel the sacred sphere. ## Formal model - **Abstraction taken:** The continuous mass physical scrum and stick-batting dynamics are discretized onto a 2D grid with discrete time steps. Ball possession in dense clusters is resolved via a stochastic contest function parameterized by local agent density and team strength [gap-fill: continuous physical melee scrum and stick striking are discretized onto a 2D field grid with discrete time ticks; ball possession contests are resolved via stochastic scrum strength functions]. - **Player/agent count:** 2 team agents (A and B), each controlling M player units (M=6 in standardized discretized simulation [gap-fill: standardized to 6 vs 6 active agents per team on a 15x9 grid]). - **Turn model:** Simultaneous discrete action submission per tick t=1,…,Tmax. ## Formal rules R1. Field and Setup: - Grid dimensions: x∈[−L,L],y∈[−W,W] (e.g., 15×9). - Team A goal pit: located at (−L,0); Team B goal pit: located at (L,0). - Ball starts at origin (0,0) with ball_carrier=None. - Team A players initialize at x<0; Team B players initialize at x>0. - Match is played to Gtarget goals (default 2) or highest score at tick limit. R2. Action Selection (per tick t): - Every agent u simultaneously chooses one action a∈{MOVE(dx,dy),STRIKE(dir,power),SCRUM_PUSH(dir),HOLD_BALL}. - Movement is constrained to adjacent grid cells without exceeding boundary walls. R3. [gap-fill] Scrum Contest Resolution: - When the ball is free at coordinate pball and multiple agents occupy pball or adjacent cells, a possession roll is triggered: P(Team A gains ball)=∑u∈AscrumStrength(u)∑u∈AscrumStrength(u)+∑v∈BscrumStrength(v) - The winning team assigns the ball to their closest unhindered agent. R4. Ball Striking and Movement: - If agent u holding or adjacent to the ball executes STRIKE(dir,power): - Ball is launched along direction vector dir for distance d=round(power⋅skillu). - Ball trajectory halts early if it collides with an intervening player (who may catch or deflect it) or enters a goal pit. R5. Goal and Scoring: - If the ball enters Goal Pit A ((−L,0)), Team B scores 1 goal. - If the ball enters Goal Pit B ((L,0)), Team A scores 1 goal. - Upon a goal, positions reset to starting halves, and a new round commences from center. R6. [gap-fill] Match Termination and Time Limit: - A match consists of a maximum of Tmax=150 ticks per round, for up to 3 rounds. - First team to reach Gtarget=2 goals wins immediately. - If Tmax expires with tied goals, sudden-death overtime is played with a 50-tick cap; if still tied, the team that maintained longer aggregate ball possession wins. ## Edge cases - Tie at the end condition: Handled by R6; resolved via sudden-death overtime or possession-time tiebreaker. - A player with no legal move: Not applicable; all agents always have at least `STAY` or `SCRUM_PUSH` actions available. - Repetition / cycles: Bounded by the hard per-round tick limit Tmax in R6. - Simultaneous claims on the same resource or position: Covered by R3's stochastic scrum contest formula. - Player elimination mid-round; turn order repair: No elimination; all players remain active throughout all rounds. - Resource exhaustion: Ball and goal states are persistent and reset cleanly upon goals; no consumable depletion. - Termination guarantee: why the game provably ends: Guaranteed by R6 (finite round and match tick limits). ## State representation - Persistent state: - `score_A`, `score_B`: non-negative integers. - `current_round`: integer ∈[1,3]. - `possession_ticks_A`, `possession_ticks_B`: integers tracking time in possession. - Per-round ephemeral state: - `agent_positions`: array of coordinates for all 2M agents. - `ball_pos`: coordinate (x,y). - `ball_carrier`: nullable agent ID. - `current_tick`: integer ∈[0,Tmax]. - Observable information: - Fully observed by all agents: player coordinates, ball coordinate/carrier, goal coordinates, scores, and round timer. ## Action space - `move(dx, dy)`: Step into adjacent cell Δ∈{(0,0),(±1,0),(0,±1)}. - `strike(direction, power)`: Strike ball along vector with power ∈[1,3]. - `scrum_push(direction)`: Apply physical leverage to push adjacent opponents. - `hold_ball()`: Retain possession while bracing against tackles. ## Playability notes - Single-player-vs-AI: Playable as a tactical coach (controlling 1 team) or single player in a team against AI opponents. - Group games (n>4): The traditional game involves dozens of villagers; the 6v6 discretization captures the tactical team play. Can be reduced to a 2-agent duel (1v1) on a compact 9×5 field without structural breakage. - Physical-skill games: Physical mass and wrestling leverage are abstracted into scalar `Strength` and `Skill` attributes driving R3's probability function. - What is lost in the adaptation: The intense physical stamina, mud, crowd uproar, and spiritual ritual fervor of holding the sacred sphere. ## Implementation hints - Implement as a 2D grid multi-agent environment (e.g., custom PettingZoo or OpenAI Gym). - Use vector math for ball trajectory and line-of-sight interception. - Suggested first milestone: Implement the 2D grid with 2v2 agents, ball carrying, goal detection, and R3 scrum resolver.

Download as JSON

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

Download JSON
Cite this page

Sacred Ball Scrum / Phet Festival Ball Contest (Vietnam). (n.d.). Games of Countries. https://gamesofcountries.com/games/vn-vietnam/cuop-phet

@misc{gamesofcountries-vn-vietnam-cuop-phet,
  title = {Sacred Ball Scrum / Phet Festival Ball Contest (Vietnam)},
  year = {n.d.},
  publisher = {Games of Countries},
  url = {https://gamesofcountries.com/games/vn-vietnam/cuop-phet}
}