From 651c4713c27f3b14807a96075d3bb4cd6109dd35 Mon Sep 17 00:00:00 2001 From: vova-rs Date: Mon, 12 Oct 2026 22:42:11 +0300 Subject: [PATCH] whin zones patch --- src/chess_api/engines/breakthrough.rs | 4 ++-- src/main.rs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/chess_api/engines/breakthrough.rs b/src/chess_api/engines/breakthrough.rs index 235b349..c314ccd 100644 --- a/src/chess_api/engines/breakthrough.rs +++ b/src/chess_api/engines/breakthrough.rs @@ -1,8 +1,8 @@ use std::collections::HashMap; use super::*; -pub const WHITE_WON_ZONE: u64 = 0xff; -pub const BLACK_WON_ZONE: u64 = 0xff << 56; +pub const WHITE_WON_ZONE: u64 = 0xff << 56; +pub const BLACK_WON_ZONE: u64 = 0xff; struct Breakthrough{ board: Board<1>, diff --git a/src/main.rs b/src/main.rs index 8b99fad..f3e7724 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,4 +25,8 @@ fn main() { print!("\n"); render_board(BoardColor::Solid('`'), vec![(!mov_mask(3), 'a'), (!mov_mask(-2), 'c')]); + + print!("\n"); + + render_board(BoardColor::Solid('`'), vec![(0xffff, 'W'), (0xff << 56, 'B')]); }