Skip to content

Commit

Permalink
Syzygy: Fix pawnful wide dtz map
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jun 30, 2018
1 parent bb6b4b0 commit 83238c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chess/syzygy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ def init_table_dtz(self):
p_data += p_data & 0x01
for _ in range(4):
self.map_idx[-1].append((p_data + 2 - self.p_map) // 2)
p_data += 2 * 2 + self.read_uint16(p_data)
p_data += 2 + 2 * self.read_uint16(p_data)
p_data += p_data & 0x01

for f in range(files):
Expand Down

0 comments on commit 83238c0

Please sign in to comment.