Formal Specification
Hand-clapping reaction duel — Formal Specification
Armenia · dexterity-small · Confidence: high
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: probabilistic-proxyGap-fills: 2
# Tkotsi — AI-optimized specification
## General idea
A reflex duel with an asymmetric three-outcome structure rather than a simple hit/miss: a landed slap keeps the Attacker attacking, a genuine dodge of a real strike *reverses* roles, and a premature dodge against a mere feint is itself penalized as a fault that also keeps the Attacker attacking. The Defender must therefore distinguish a real strike from a feint under time pressure — reacting too early is punished exactly like reacting too late.
## Formal model
- **Abstraction taken:** Real neuromuscular reaction speed and feint-reading are abstracted into a single stochastic reflex check resolved only when the Attacker commits to an actual strike, since the entry gives no numeric reaction-time model.
- **Player/agent count:** 2 agents; roles `Attacker`/`Defender` are mutually exclusive and can swap (R4).
- **Turn model:** Sequential rounds. Each round, the Attacker commits to one action; the Defender may react before the round resolves.
## Formal rules
R1. Setup: the Defender extends both hands palms-up; the Attacker hovers both hands palms-down just above, without touching (entry §1.2-1.3).
R2. Attacker action per round: the Attacker submits either `feint()` (finger twitch or subtle motion with no real strike, entry §2.1) or `strike()` (a rapid palm-flip slap attempt, entry §2.2).
R3. Defender action per round: at any point during the Attacker's action, the Defender may submit `dodge()` (withdraw hands) or take no action (`hold`, implicitly continuing to hold position, entry §2.3).
R4. Resolution — real strike (`strike()` was submitted):
- If the Defender's `dodge()` (if any) resolves as successful via a stochastic reflex check, this is a **clean miss** (entry §3.2): the Defender scores +1 point, and roles reverse — the Defender becomes the new Attacker and vice versa.
- If the Defender did not dodge, or the reflex check fails, this is a **successful slap** (entry §3.1): the Attacker scores +1 point and retains the Attacker role.
R5. Resolution — feint (`feint()` was submitted):
- If the Defender submits `dodge()` in reaction to a feint, this is a **false move** (entry §3.3): the Defender is faulted, the Attacker scores +1 point and retains the Attacker role.
- If the Defender does not dodge, no score event occurs; the round ends with roles unchanged and a new round begins (R2).
R6. Win condition (entry §4): the match is played to a fixed score threshold — "typically first to 10 points" — or in sets of 5 successful slaps [gap-fill: the entry names both formats as usable conventions rather than a single fixed rule; the threshold/set-count is treated as an external session parameter, since "typically" signals an example, not an invented fixed number].
## Edge cases
- Tie at the end: not applicable — the match ends the instant one player's score reaches the fixed threshold (R6), which is by definition a strict lead at that moment, not a tie.
- A player with no legal move: not applicable — the Attacker always has `feint()`/`strike()` available; the Defender always has `dodge()`/`hold` available.
- Repetition / cycles: an Attacker who only ever `feint()`s and a Defender who never `dodge()`s produces rounds with no score event indefinitely (R5's no-op branch) — this is a genuine structural possibility, not resolved by any rule in the entry. It is not treated as a forced-progress guarantee; rather, both players are assumed to have a rational incentive to eventually attempt scoring actions, since indefinite mutual passivity advances neither player toward the win condition [gap-fill: the entry assumes active play throughout and does not itself force a strike or dodge attempt within any time bound].
- Simultaneous claims on one position: not applicable — there is a single contested contact point (the back of the Defender's hands) and R4/R5 resolve it to exactly one of the named outcomes per round.
- Elimination mid-round and turn-order repair: not applicable — a 2-agent duel with instantaneous role reversal (R4) has no turn order to repair; there is no elimination, only role relabeling.
- Resource exhaustion: not applicable — no consumable resource; hands and positions reset every round.
- Termination guarantee: given the honest caveat above (Edge cases, Repetition/cycles) that indefinite mutual passivity is not formally excluded by the entry's rules, termination is guaranteed under the standard assumption that both agents eventually attempt scoring actions with non-zero per-round probability, consistent with the entry's framing of the game as an active reflex contest — under that assumption, the fixed score threshold (R6) is reached with probability 1 by the same non-decreasing-hazard argument used elsewhere in this batch.
## State representation
- Persistent (match) state: `score[player]`, `roles` (which player is currently Attacker/Defender).
- Per-round ephemeral state: `attacker_action` (feint/strike, revealed as it is performed), `defender_reaction` (dodge/hold, if submitted).
- Observable information: fully observable in the sense that both players see the physical setup and prior scores; the core uncertainty is not hidden state but the Defender's real-time reaction-speed limitation, modeled as the stochastic reflex check in R4 rather than as information asymmetry.
## Action space
- `feint()`: the current Attacker only; precondition: round starting.
- `strike()`: the current Attacker only; precondition: round starting.
- `dodge()`: the current Defender only; precondition: round in progress (attacker has acted or is acting).
- (implicit `hold`): the current Defender's default if `dodge()` is not submitted.
## Playability notes
- Single-player-vs-AI: highly natural — a human plays either role against an AI opponent whose feint/strike timing and reflex-check parameters can be tuned for difficulty.
- Physical-skill games: the entire reflex and feint-reading contest is reduced to a single stochastic reflex check (R4) conditioned on whether the Attacker's action was real; no genuine reaction-time physiology is modeled.
- What is lost: the real psychological tension of reading an opponent's micro-movements, the physical sting of a landed slap, and the escalating variants (single-hand, crossed-hands) that change the geometry of the flip without changing the formal scoring structure.
## Implementation hints
State is minimal (scores and current roles); the real design difficulty is calibrating the reflex-check probability as a function of reaction-time budget, and separately calibrating how easily an AI Defender can distinguish `feint()` from `strike()` before committing to `dodge()`. First milestone: implement the round loop (R2-R5) with a flat reflex-check probability to validate role-reversal-on-clean-miss (R4) and the false-move penalty (R5), then tune feint-detection difficulty.
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Hand-clapping reaction duel (Armenia). (n.d.). Games of Countries. https://gamesofcountries.com/games/am-armenia/tkotsi
@misc{gamesofcountries-am-armenia-tkotsi,
title = {Hand-clapping reaction duel (Armenia)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/am-armenia/tkotsi}
}