rshogi-core
A high-performance shogi (Japanese chess) engine core library written in Rust.
Features
- Bitboard-based board representation - Fast move generation and position evaluation
- NNUE evaluation - Neural network-based evaluation with HalfKP architecture support
- Alpha-beta search - With various pruning techniques (null move, futility, LMR, etc.)
- Transposition table - Lock-free concurrent hash table
- Time management - Adaptive time control for various time settings
- Multi-threaded search - Lazy SMP parallel search support
Installation
Add this to your Cargo.toml:
[]
= "0.2"
Usage
use ;
use ;
// Create a new position (starting position)
let mut pos = new;
pos.set_sfen.unwrap;
// Create search engine (transposition table size: 64MB)
let mut search = new;
// Set search limits
let mut limits = new;
limits.depth = 10;
// Run search
let result = search.go;
println!;
License
GPL-3.0-only License