bitboard: make directional methods take step argument
This commit is contained in:
@@ -298,7 +298,7 @@ impl Board {
|
||||
|
||||
// Expand in direction until edge or non-opponent piece
|
||||
loop {
|
||||
current = dir(¤t);
|
||||
current = dir(¤t, 1);
|
||||
if current.is_empty() || !current.intersects(*opponent_board) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user