Skip to main content

Crate lumifox_chess

Crate lumifox_chess 

Source
Expand description

Lumifox Chess — high-performance chess primitives

This crate provides low-level, high-performance chess primitives suitable for building engines, UCI adapters, or analysis tools. It focuses on compact bitboard representations, efficient move generation, and no_std friendliness when the std feature is disabled.

Key modules

  • model — board and piece representations (bitboards, moves, game state)
  • movegen — move generation for all piece types (fast, allocation-free)
  • legal — move legality checks and attack detection
  • constants — shared constants such as square indices and masks
  • errors — crate-specific error types

Example

use lumifox_chess::model::gameboard::GameBoard;
use lumifox_chess::movegen::generate_moves;

// Create a starting position and generate moves (API is intentionally low-level)
let board = GameBoard::startpos();
let (moves, count) = generate_moves(&board);
assert!(count > 0);

For higher-level documentation and usage examples see the crate README at https://github.com/ArchProtogens/lumifox/tree/main/modules/chess

Modules§

constants
errors
legal
model
Types and utilities for representing chess state.
movegen
Move generation routines