Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cursed wins and blessed losses DTZ fix.
  • Loading branch information
syzygy committed Dec 10, 2016
1 parent f568066 commit 9600ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tbgenp.c
Expand Up @@ -614,8 +614,8 @@ void prepare_dtz_map(ubyte *v, struct dtz_map *map)
v[BASE_WIN + DRAW_RULE + 1] = inv_map[2][0];
v[BASE_LOSS - DRAW_RULE - 1] = inv_map[3][0];
for (i = DRAW_RULE + 2; i <= REDUCE_PLY; i++) {
v[BASE_WIN + i + 2] = inv_map[2][(i - 1) / 2];
v[BASE_LOSS - i] = inv_map[3][(i - 1) / 2];
v[BASE_WIN + i + 2] = inv_map[2][(i - DRAW_RULE - 1) / 2];
v[BASE_LOSS - i] = inv_map[3][(i - DRAW_RULE - 1) / 2];
}
#endif
} else {
Expand Down

2 comments on commit 9600ffa

@MichaelB7
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ronald, Quick question regarding this patch. If the tablebases were generated prior to December 9, 2016, should they be regenerated?

@syzygy1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this fix only affected the suicide/giveaway/losers tables. My commit message could have been more clear. I am not aware of any mistakes in the WDL/DTZ tables.

Please sign in to comment.