bitboard: make directional methods take step argument

This commit is contained in:
2025-03-11 15:59:09 -04:00
parent a0cd9edc32
commit 72dc7b9a48
2 changed files with 19 additions and 20 deletions

View File

@@ -298,7 +298,7 @@ impl Board {
// Expand in direction until edge or non-opponent piece
loop {
current = dir(&current);
current = dir(&current, 1);
if current.is_empty() || !current.intersects(*opponent_board) {
break;
}