eschac 0.6.1

computing chess moves
Documentation
#[allow(dead_code)]
mod bitboard;
#[allow(dead_code)]
mod board;
#[allow(dead_code)]
mod util;

mod magic;

extern crate alloc;

fn main() -> Result<(), Box<dyn std::error::Error>> {
	println!("cargo:rerun-if-changed=NULL");
	let out_dir = std::env::var("OUT_DIR")?;
	let (m, t) = magic::build();
	std::fs::write(format!("{out_dir}/magic.bin"), m)?;
	std::fs::write(format!("{out_dir}/table.bin"), t)?;
	Ok(())
}