Formal Specification
Maltese Handkerchief Game — Formal Specification
Malta · chase-tag · Confidence: low
← Back to game pageImplementation Suitability
Suitability: engine-readyFidelity: discretizedGap-fills: 3
# Il-Maktur — AI-optimized specification
## General idea
A discretized team tag-and-sprint game where two numbered teams duel 1-on-1 per round. Two active runners race to a center line where a handkerchief token is held. The core strategic challenge is deciding whether to grab the token and race home under pursuit, or bait the opponent into grabbing it and immediately tag them.
## Formal model
- **Abstraction taken:** The 2D playing pitch is discretized into a 1D grid `[-L, +L]` (default `L = 10` meters). Team A occupies `-L`, Team B occupies `+L`, and the handkerchief is positioned at `x = 0`.
- **Player/agent count:** 2 teams of N agents (N in [4, 10]).
- **Turn model:** Round-based. Each round is a 1v1 duel executed in discrete synchronous time ticks (`dt = 0.2s`).
## Formal rules
R1. Setup: Team A is positioned at `-L`; Team B at `+L`. Agents on each team hold an index `1..N`. Match scores start at `0:0`.
R2. On each round:
R2.1. The referee samples a random index `k in 1..N`. Agents `A_k` and `B_k` become active.
R2.2. On each tick `t`, active agents choose an action: `advance(speed)`, `feint()`, `retreat(speed)`.
R2.3. Crossing `x = 0` prior to flag grab is an immediate foul, awarding 1 point to the opponent.
R2.4. When an agent occupies `x = 0` and executes `grab()`, they become `Carrier` and the opponent becomes `Chaser`.
R2.5. If `Carrier` reaches home baseline (`-L` or `+L`) untagged, their team scores 1 point.
R2.6. If `Chaser` occupies the same or adjacent cell as `Carrier` and executes `tag()`, the `Chaser`'s team scores 1 point.
R3. [gap-fill] Stalemate timeout: If neither agent grabs the handkerchief within 60 ticks, the round is voided (0 points) and a new number is called.
R4. Win condition: First team to reach `Target_Score = 10` points wins.
R5. [gap-fill] Tie-break rule: If tied at 9-9, play continues until one team leads by 2 points.
## Edge cases
- Tie at the end condition: Resolved via 2-point lead rule (R5).
- A player with no legal move: Not applicable — movement actions are always available.
- Repetition / cycles: Bounded by 60-tick round cap (R3) and monotonic score accumulation.
- Simultaneous claims on the same resource or position: If both agents execute `grab()` on the exact same tick, [gap-fill] a coin toss assigns possession to one runner while the other becomes Chaser without movement penalty.
- Player elimination mid-round: If playing elimination mode, the eliminated player's index is reassigned to an active teammate.
- Resource exhaustion: Not applicable — handkerchief resets every round.
- Termination guarantee: Guaranteed by finite tick caps per round and monotonic scoring.
## State representation
- Persistent state: `scores` (map Team -> int), `rosters` (map Team -> list of agent_ids), `target_score` (int).
- Per-round ephemeral state: `active_index` (int), `carrier_id` (agent_id or null), `pos_A` (int), `pos_B` (int), `round_tick` (int 0..60).
- Observable information: Fully observable by both active agents.
## Action space
- `move(delta_x)`: Advance or retreat along the 1D grid.
- `grab()`: Available at `x = 0` when unpossessed.
- `tag()`: Available to Chaser when distance to Carrier <= 1.
## Playability notes
- Single-player-vs-AI: Natural — 1 human vs. 1 AI agent controlling the active runner.
- Group games (n>4): Clean 1v1 duel round structure scales well for multi-agent teams.
- Physical-skill games: Acceleration curves and dodging agility discretized into grid step values.
- What is lost: The physical hand feinting, head fakes, and footwork on concrete.
## Implementation hints
1D grid state machine with 21 cells (`[-10, +10]`). Implement grab-trigger and pursuit chase dynamics cleanly.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Maltese Handkerchief Game (Malta). (n.d.). Games of Countries. https://gamesofcountries.com/games/mt-malta/il-maktur-malti
@misc{gamesofcountries-mt-malta-il-maktur-malti,
title = {Maltese Handkerchief Game (Malta)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/mt-malta/il-maktur-malti}
}