hexchess 2.0.0-beta.4

A Rust / TypeScript library for Gliński's hexagonal chess, and the brain of hexchess.club
Documentation
1
2
3
4
5
6
import type { Board, Color, PromotionPiece } from '../types';

/**
 * Find the king of a given color
 */
export function findKing(hexchess: HexchessStruct, color: Color): number;