import { type Span } from "./fields.ts"; import type { LeagueBase } from "./types.ts"; /** A mat: its length and width in metres. */ export interface Mat { length: number; width: number; } /** The figures of a judo contest area (a competition tatami), in metres. */ export interface JudoFigures { kind: "judo"; /** The contest area, a square: 8 m to 10 m a side (IJF SOR 8.7); 10 m at the Olympic Games, the World Championships and the Masters, which is the size drawn. */ contest: Span; /** The safety area round it: at least 3 m (SOR 8.7). At the Games it is 4 m (the common and the exterior one); that is drawn. The rules give no greatest, so the drawing allows up to 6 m (ours). */ safety: Span; /** The distance between two adjoining contest areas: a common safe zone of at least 4 m may serve (SOR 8.7). */ common: number; /** The free zone kept round the whole competition area: at least 0.5 m (SOR 8.7). */ freeZone: number; /** The tatami: 1 m by 2 m by 5 cm of pressed foam (SOR 8.7); the AJJF's own is 182 cm by 91 cm, 5 or 6 cm thick (guidebook 2-1). */ tatami: Mat & { thickness: number; }; /** A solid platform under the tatami is one metre wider and longer than the tatami (SOR 8.7), with an exterior safety area of 4 m. */ platform: number; /** The tape that marks where the contestants start: 10 cm by 50 cm (SOR 2020 18.1), and how far each is from the centre. */ marks: { width: number; length: number; fromCentre: number; } | null; /** The domestic red tatami of the danger zone, as wide as one tatami, inside the contest area; none in an IJF contest area (the guidebook 2-3 allows it at events other than the Games, the Worlds and the Masters). */ danger: boolean; /** A kata area: two white tapes 5 cm by 50 cm, 3 m from the centre either side, and a safety area of 2 m (SOR B1.8). */ kata: boolean; } /** The figures of a karate competition area, in metres. */ export interface KarateFigures { kind: "karate"; /** The matted square, 8 m a side measured from the outside (WKF Kumite 1.1, Kata 1.1). */ area: number; /** Kumite: the outer 1 m of the square is in another colour, marking the boundary (1.1). None for kata. */ band: number; /** The safety area round the square: 2 m (1.1). */ safety: number; /** The least distance between two competition areas: 2 m (1.2). */ between: number; /** Kumite: the two mats turned over, red side up, 1 m from the centre (1.5). The mat's size is not in the rules: 1 m by 1 m (ours, the size of a WKF-approved mat). */ startMats: { size: number; fromCentre: number; } | null; /** The referee stands at the middle, 2 m from the boundary (1.6); each judge sits about 1.5 m off a corner in the safety area (1.6). */ referee: number; judges: number; } /** The figures of a kendo shiai-jo, in metres. */ export interface KendoFigures { kind: "kendo"; /** A square or a rectangle of 9 m to 11 m a side, inclusive of the width of the line (Article 2). 10 m is drawn: the middle (ours). */ side: Span; /** The lines are 5 cm to 10 cm wide and white as a rule (Subsidiary Rules, Article 1). */ lineWidth: Span; /** The cross at the centre: 30 cm to 40 cm (Figure 1). */ cross: Span; /** The two kaishi-sen, each 50 cm long and 1.4 m from the centre (Figure 1). */ startLine: { length: number; fromCentre: number; }; /** A space of at least 1.5 m is kept outside the shiai-jo (Subsidiary Rules, Article 1). */ outside: number; } /** The figures of a sumo dohyō, in metres. */ export interface SumoFigures { kind: "sumo"; /** The clay square: 6.7 m a side (Sumo Rules, Dohyō Regulations, Article 1). */ platform: number; /** Its height: 34 cm to 60 cm for a public dohyō (Article 1); 55 cm is drawn (ours). */ height: Span; /** The circle of tawara: 4.55 m, 15 shaku (Article 1). Taken as the inside of the ring, where the wrestlers stand (ours: the rule does not say which edge). */ circle: number; /** The tawara of the circle: 20, which are 4 tokudawara and 4 between each of them (Quiz No. 355). */ tawara: { count: number; tokuda: number; between: number; }; /** The shikiri-sen: two white lines 90 cm long, 6 cm wide and 70 cm apart (Quiz No. 1091). */ shikiri: { length: number; width: number; apart: number; }; /** The width of a tawara's cross-section and how far a tokudawara stands out from the circle: the rules give neither (ours). */ bale: { width: number; out: number; }; /** The band of sand, the jano-me, outside the tawara: the rules give no width (ours). */ jano: number; } /** The figures of a kyūdōjō, in metres. */ export interface KyudoFigures { kind: "kyudo"; /** The distance from the shooting position (射位) to the face of the target: 28 m (kinteki) or 60 m (enteki) (Wakayama 2015; ANKF manual 4). */ distance: number; /** The target: 36 cm across (a kasumi-mato) for kinteki, 100 cm for enteki; its centre 27 cm above the azuchi's base and tilted 5 degrees, or 97 cm above the ground and tilted 15 degrees. */ target: { diameter: number; centre: number; tilt: number; }; /** The shooters' places: 1.8 m apart (1.6 m to 2.0 m) for kinteki and 1.6 m (1.4 m to 1.8 m) for enteki, a line of 5 (ANKF manual 6). */ step: Span; count: number; /** The distance from the shooting position back to the honza (本座): 2.0 m for kinteki and 1.1 m for enteki (ANKF manual 6). */ honza: number; /** The ceiling of the shajō: 4.0 m, at least 3.8 m (ANKF manual 6). */ ceiling: number; /** The shooters stand to one side or the other of the door: the distance to the wall behind the last shooter, at least 1.4 m, and the least distance from the honza to the officials' seats behind (3.0 m for kinteki, 4.0 m for enteki). */ behind: { wall: number; officials: number; }; /** * The shajō in the manual's figures (Figures II-1 and II-3): 9.0 m from the front edge to the row of the officials' seats, with the shooting positions 2.1 m behind the front edge; 2.7 m (kinteki) or 2.2 m (enteki) from the first and the * last shooter to the side walls, so that the frontage of 5 shooters is 12.6 m or 10.8 m; 3.6 m more for the judges' side. How far the back wall stands beyond the officials' row is not given: 1.5 m (ours). */ hall: { front: number; depth: number; side: number; judges: number; rear: number; }; /** The distance from the honza back to the row of the officials' seats: 4.9 m (kinteki) and 5.8 m (enteki), Figures II-1 and II-3. */ row: number; /** The width of the yamichi beyond the line of targets on each side, and the depth, the height and the margin of the azuchi: the rules give none (ours). */ yamichi: { margin: number; }; azuchi: { depth: number; height: number; margin: number; }; } /** The figures of a dojo's mat: one tatami of a region. */ export interface DojoFigures { kind: "dojo"; /** One mat, a jō (畳), twice as long as it is wide. */ mat: Mat; /** Where the standard is used. */ region: { en: string; ja: string; }; } /** The figures of a budō league. */ export type BudoFigures = JudoFigures | KarateFigures | KendoFigures | SumoFigures | KyudoFigures | DojoFigures; /** The leagues of each budō sport. */ export type JudoLeague = LeagueBase<"judo", JudoFigures>; export type KarateLeague = LeagueBase<"karate", KarateFigures>; export type KendoLeague = LeagueBase<"kendo", KendoFigures>; export type SumoLeague = LeagueBase<"sumo", SumoFigures>; export type KyudoLeague = LeagueBase<"kyudo", KyudoFigures>; export type DojoLeague = LeagueBase<"dojo", DojoFigures>; /** A league with a budō surface of its own. */ export type BudoLeague = JudoLeague | KarateLeague | KendoLeague | SumoLeague | KyudoLeague | DojoLeague; /** The IJF's contest area (Sport and Organisation Rules 8.7, version of 21 January 2026) as drawn for the Games, the Worlds and the Masters. */ export declare const IJF_CONTEST: JudoFigures; /** The All Japan Judo Federation's: the tatami of 182 cm by 91 cm, the red tatami of the danger zone, and the red and white tape 4 m (2 ken) apart (Tournament Management Guidebook 2023, 2-1, 2-3, 2-4). */ export declare const AJJF_CONTEST: JudoFigures; /** The kata area (SOR B1.8): 10 m for the World Championships and 8 m for other events, a safety area of 2 m, two white tapes of 5 cm by 50 cm, 3 m from the centre. */ export declare const IJF_KATA: JudoFigures; /** The WKF's kumite area (Kumite Competition Rules 2026.01, Article 1). */ export declare const WKF_KUMITE: KarateFigures; /** The WKF's kata area (Kata Competition Rules 2026, Article 1): the same square, with no band and no start mats. */ export declare const WKF_KATA: KarateFigures; /** The kendo shiai-jo (FIK Regulations, Article 2, the Subsidiary Rules' Article 1 and Figure 1). */ export declare const FIK_SHIAI_JO: KendoFigures; /** The dohyō of the Japan Sumo Association (Sumo Rules, Dohyō Regulations, Article 1, and the Association's quizzes). */ export declare const JSA_DOHYO: SumoFigures; /** The kyūdōjō for kinteki (近的), the 28 m range of a competition (ANKF competition manual 6 and the National Sports Festival's rules). */ export declare const KINTEKI: KyudoFigures; /** The kyūdōjō for enteki (遠的), 60 m, with the target of 1 m. */ export declare const ENTEKI: KyudoFigures; /** The budō leagues: for each sport the rulebook's own first. */ export declare const JUDO_LEAGUES: readonly JudoLeague[]; export declare const KARATE_LEAGUES: readonly KarateLeague[]; export declare const KENDO_LEAGUES: readonly KendoLeague[]; export declare const SUMO_LEAGUES: readonly SumoLeague[]; export declare const KYUDO_LEAGUES: readonly KyudoLeague[]; export declare const DOJO_LEAGUES: readonly DojoLeague[]; /** Every budō league, once each. */ export declare const BUDO_LEAGUES: readonly BudoLeague[];