File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ impl Board {
7
7
let mut moves = Vec :: new ( ) ;
8
8
9
9
// 50 moves draw
10
- if self . halfmove_clock >= 100 {
10
+ if self . game_state . fifty_move_ply_count >= 100 {
11
11
return moves;
12
12
}
13
13
@@ -77,7 +77,7 @@ impl Board {
77
77
}
78
78
79
79
// EN PASSANT
80
- if let Some ( ep) = self . en_passant_square {
80
+ if let Some ( ep) = self . game_state . en_passant_square {
81
81
if left == ep {
82
82
moves. push ( Move {
83
83
from,
Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ impl Zobrist {
56
56
}
57
57
58
58
for i in 0 ..4 {
59
- if board. castling_rights & ( 1 << i) != 0 {
59
+ if board. game_state . castling_rights & ( 1 << i) != 0 {
60
60
hash ^= self . castling_rights [ i] ;
61
61
}
62
62
}
63
63
64
- if let Some ( en_passant) = board. en_passant_square {
64
+ if let Some ( en_passant) = board. game_state . en_passant_square {
65
65
hash ^= self . en_passant [ en_passant % 8 ] ;
66
66
}
67
67
You can’t perform that action at this time.
0 commit comments