fix start posytion; some test

This commit is contained in:
vova-rs committed 2026-10-13 21:31:11 +03:00
1 parent 54c458296d
commit 2c2ccd6770
2 files changed
+11 -21

No files matched your search

+5 -1
View File
@@ -5,7 +5,7 @@ pub const WHITE_WON_ZONE: u64 = 0xff << 56;
pub const BLACK_WON_ZONE: u64 = 0xff;
pub const START_BOARD: Board<1> = Board::from_layers([
[0xffff << 48, 0xffff],
[0xffff, 0xffff << 48],
]);
pub struct Breakthrough{
@@ -29,6 +29,10 @@ impl Breakthrough {
self.legal_moves = Some(self.generate_legal());
}
pub fn get_board(&self) -> Board<1> {
self.board.clone()
}
fn generate_legal(&self) -> HashMap<Move, MaskPatch>{
let mut legal: HashMap<Move, MaskPatch> = HashMap::new();