duck-chess 0.1.0

A library to for duck chess
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! where lookup tables & stuff shoud go

// neighor
pub mod neighbor {
	use crate::engine::BitBoard;
	use crate::types::Square;

	include!(concat!(env!("OUT_DIR"), "/has_neighbor.rs"));

	#[inline]
	pub fn has_neighbor(square: Square, board: BitBoard) -> bool {
		unsafe { NEIGHBOR_LOOKUP.get_unchecked(square as u8 as usize)(board) }
	}
}