Formal Specification
Black Raven — Formal Specification
Ireland · board-abstract · Confidence: medium
← Back to game pageImplementation Suitability
Suitability: adaptation-requiredFidelity: directGap-fills: 2
# Brandubh — AI-optimized specification
## General idea
An asymmetric abstract strategy board game on a 7×7 grid where a lone King and 4 defenders positioned in the center battle against 8 perimeter attackers. The King attempts to reach any of the 4 corner escape squares, while the attackers coordinate orthogonal trapping lines to capture the King via custodial sandwiching.
## Formal model
- **Abstraction taken:** None required (`fidelity_class: direct`). The grid topology, piece movements, custodial capture rules, and asymmetric victory conditions form a complete, discrete mathematical system.
- **Player/agent count:** 2 discrete agents: `Attacker` (8 pieces) and `Defender` (1 King + 4 Guards).
- **Turn model:** Strictly sequential alternating turns, starting with `Attacker`.
## Formal rules
R1. Board setup: A 7×7 grid indexed `(x, y) ∈ [1..7] × [1..7]`.
- Special squares: Central Throne `C = (4, 4)`; Corner Escape Forts `E = {(1, 1), (1, 7), (7, 1), (7, 7)}`.
- King initial position: `(4, 4)`.
- Defenders initial positions: `{(4, 3), (4, 5), (3, 4), (5, 4)}`.
- Attackers initial positions: `{(4, 1), (4, 2), (4, 6), (4, 7), (1, 4), (2, 4), (6, 4), (7, 4)}`.
R2. Movement:
- On their turn, an agent selects one piece and moves it any number of unoccupied squares along a straight orthogonal line (row or column).
- Jumping over other pieces is prohibited.
- Only the King may land on corner squares `E`. Regular pieces (defenders or attackers) may not land on squares in `E`.
- Only the King may land on the central Throne `C`. If the King has left `C`, other pieces may traverse through `C` during a move but cannot stop on `C`.
R3. Custodial capture of regular pieces:
- If agent moves a piece to position `P` such that an opposing regular piece at `Q` is flanked along an orthogonal line by `P` and another allied piece (or a hostile square), the piece at `Q` is captured and removed.
- Hostile squares for capturing regular pieces:
* Any corner square `E` acts as an allied captor for both players.
* The vacant Throne `C` acts as an allied captor for both players.
- Self-insertion into a flanked position is safe; capture only triggers on the active mover's turn.
R4. King capture:
- On the Throne `(4, 4)`: The King is captured if all 4 orthogonally adjacent squares `{(4, 3), (4, 5), (3, 4), (5, 4)}` are occupied by Attackers.
- Adjacent to the Throne: The King is captured if surrounded on 3 orthogonal sides by Attackers with the 4th side being the vacant Throne.
- Away from the Throne: [gap-fill] The King is captured by 2 opposing Attackers on opposite orthogonal sides (standard 2-sided custodial capture).
R5. Victory conditions:
- `Defender` wins immediately if the King occupies any square in `E`.
- `Attacker` wins immediately if the King is captured.
- If an agent has no legal moves on their turn, that agent loses immediately.
R6. [gap-fill] Threefold repetition & turn cap: If an identical board state occurs 3 times with the same player to move, or if 100 plies elapse without a capture or King advance toward a corner, the game terminates in a draw.
## Edge cases
- Tie at the end condition: Achieved only via threefold repetition or the 100-ply stalemate rule.
- A player with no legal move: The immobilized player immediately loses (sudden-death loss on turn).
- Repetition / cycles: Governed by the mandatory threefold repetition draw rule.
- Simultaneous claims on the same resource or position: Not applicable; turns and cell occupations are strictly mutually exclusive.
- Player elimination mid-round: When all 4 defenders or attackers are captured, the remaining pieces continue until King escape, King capture, or immobilization.
- Resource exhaustion: Board piece sets are strictly finite and decrement upon capture.
- Termination guarantee: Enforced by the 100-ply rule and finite board state space.
## State representation
- Persistent state: 7×7 board grid mapping each `(x, y)` to `Empty`, `King`, `Defender`, `Attacker`.
- Per-player state: Alive piece count, active player indicator (`Attacker` or `Defender`).
- Per-turn ephemeral state: Declared move `(from_pos, to_pos)`, list of captured pieces.
- Observable information: Complete perfect-information game.
## Action space
- `move_piece(from_x, from_y, to_x, to_y)`: Orthogonal slide along clear rank or file.
## Playability notes
- Single-player-vs-AI: Ideal candidate for Minimax / Alpha-Beta or MCTS game trees.
- Group games (n>4): Not applicable (2-player duel).
- Physical-skill games: Pure abstract combinatorial strategy.
- What is lost: The tactile pleasure of carved wooden pegs and ancient Irish gaming board aesthetics.
## Implementation hints
Branching factor is low to moderate (approx. 15–35 legal moves per turn). Board representation fits in a 64-bit integer bitboard (49 bits).
Download as JSON
Download the full game corpus entry for this game as structured JSON.
Download JSONCite this page
Brandubh (Ireland). (n.d.). Games of Countries. https://gamesofcountries.com/games/ie-ireland/brandubh
@misc{gamesofcountries-ie-ireland-brandubh,
title = {Brandubh (Ireland)},
year = {n.d.},
publisher = {Games of Countries},
url = {https://gamesofcountries.com/games/ie-ireland/brandubh}
}