Formal Specification
Staff Game / Portuguese Stick Combat — Formal Specification
Portugal · wrestling-combat · Confidence: low
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 4
# Jogo do Pau — AI-optimized specification
## General idea
A two-agent martial contest modeled as a series of tactical combat exchanges. Each round, agents simultaneously select offensive strike angles (high/head, mid/torso, low/legs) or defensive guards/parries, and a stochastic combat engine resolves whether a strike connects, is cleanly parried, or results in a mutual clash based on technique matchups and agent attributes.
## Formal model
- **Abstraction taken:** Real-time physical stick movement and footwork are discretized into simultaneous round-based exchanges where agents select actions from an enumerated set of authentic staff techniques (strikes, parries, feints).
- **Player/agent count:** 2 agents.
- **Turn model:** Simultaneous action commit per round, resolved atomically.
## Formal rules
R1. Setup: Each agent starts with score = 0, fouls = 0, and endurance = 100.
R2. Each exchange round, both agents simultaneously select one action from the action space: `strike(zone)`, `parry(zone)`, `feint_strike(zone)`, or `evade()`.
R3. Resolution of simultaneous choices:
- If Agent A chooses `strike(z)` and Agent B chooses `parry(z)` matching the same zone `z`, the attack is cleanly defended: 0 points awarded, Agent A loses 5 endurance.
- If Agent A chooses `strike(z)` and Agent B chooses `parry(z')` where `z != z'` or chooses another action that fails to defend `z`, the strike lands: Agent A scores 1 point (or 2 points if `z = head` [gap-fill]), and Agent B loses 15 endurance.
- If both agents choose `strike()` in the same round, a mutual clash check is evaluated: [gap-fill] if reaction speeds are within 10%, a double strike occurs (0 points to both, reset to neutral); otherwise, the faster strike scores.
- If Agent A chooses `feint_strike(z1)` and Agent B chooses `parry(z1)`, Agent A's secondary attack automatically hits alternate zone `z2` with 80% probability [gap-fill].
R4. An agent whose endurance drops to 0 cannot select `feint_strike()` and suffers a 25% penalty to strike speed [gap-fill].
R5. A foul is triggered if an illegal action is selected (e.g. thrust attack); 3 fouls disqualifies that agent immediately.
R6. Win condition: First agent to reach 5 points, or the agent with higher points after a maximum of 20 rounds, wins the bout. If tied after 20 rounds, sudden death is played where the next point wins.
## Edge cases
- Tie at the end condition: If tied at round 20, sudden death rounds continue until one agent scores.
- A player with no legal move: Not applicable; `parry()` and basic `strike()` are always available.
- Repetition / cycles: Bounded by the 20-round limit and strict point accumulation.
- Simultaneous claims on the same resource or position: Handled by simultaneous resolution rules in R3.
- Player elimination mid-round: If an agent accumulates 3 fouls or disconnects, the opponent wins by technical forfeit.
- Resource exhaustion (pieces, tokens, space, time): Round counter caps at 20 plus sudden-death rounds.
- Termination guarantee: Guaranteed because non-tied outcomes terminate at round 20, and sudden-death rounds have non-zero scoring probability per round (P > 0.35).
## State representation
- Persistent state: `scores: [int, int]`, `fouls: [int, int]`, `endurance: [int, int]`, `round: int`.
- Per-round ephemeral state: `committed_actions: [Action, Action]`, `resolved_outcome: Outcome`.
- Minimal observable information: Persistent state is fully observable; current round's committed action is hidden until simultaneous reveal.
## Action space
- `strike(zone)`: where `zone in {head, torso, legs}`. Attempts a direct staff attack.
- `parry(zone)`: where `zone in {head, torso, legs}`. Sets a defensive guard in the designated zone.
- `feint_strike(zone)`: draws a parry in `zone` before striking an open zone. Precondition: `endurance >= 10`.
- `evade()`: universal low-risk defense against all strikes, consumes 10 endurance, 0 point potential.
## Playability notes
- Single-player-vs-AI: Natural 1v1 structure; AI uses probabilistic state assessment and opponent pattern recognition (e.g. predicting overused head strikes).
- Group games (n>4): Can be structured as a tournament bracket of 1v1 bouts.
- Physical-skill games: Physical staff dexterity and speed are abstracted into zone prediction and stamina management.
- What is lost in the adaptation: Continuous physical inertia, staff-on-staff friction, and tactile weapon feedback.
## Implementation hints
Low state complexity, discrete 3-zone rock-paper-scissors dynamic with stamina and feints. Estimated branching factor: 7 actions per agent (49 joint actions per round). Milestone 1: Implement simultaneous 3-zone attack/parry resolution and point tracker.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Staff Game / Portuguese Stick Combat (Portugal). (n.d.). Games of Countries. https://gamesofcountries.com/games/pt-portugal/jogo-do-pau
@misc{gamesofcountries-pt-portugal-jogo-do-pau,
title = {Staff Game / Portuguese Stick Combat (Portugal)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/pt-portugal/jogo-do-pau}
}