Skip to content

Commit

Permalink
update lichess mirror urls
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jun 19, 2024
1 parent d2039c6 commit c455b21
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions syzygy_tables_info/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,21 +575,19 @@ async def download_txt(request: aiohttp.web.Request) -> aiohttp.web.Response:
base = "https://tablebase.lichess.ovh/tables/standard"
if len(table) <= 6:
if include_wdl:
result.append("{}/3-4-5/{}.rtbw".format(base, table))
result.append("{}/3-4-5-wdl/{}.rtbw".format(base, table))
if include_dtz:
result.append("{}/3-4-5/{}.rtbz".format(base, table))
result.append("{}/3-4-5-dtz/{}.rtbz".format(base, table))
elif len(table) <= 7:
if include_wdl:
result.append("{}/6-wdl/{}.rtbw".format(base, table))
if include_dtz:
result.append("{}/6-dtz/{}.rtbz".format(base, table))
else:
suffix = "pawnful" if "P" in table else "pawnless"
w, b = table.split("v")
if include_wdl:
result.append("{}/7/{}v{}_{}/{}.rtbw".format(base, len(w), len(b), suffix, table))
result.append("{}/7-wdl/{}.rtbw".format(base, table))
if include_dtz:
result.append("{}/7/{}v{}_{}/{}.rtbz".format(base, len(w), len(b), suffix, table))
result.append("{}/7-dtz/{}.rtbz".format(base, table))
elif source in ["sesse", "sesse.net", "tablebase.sesse.net"]:
base = "http://tablebase.sesse.net/syzygy"
if len(table) <= 6:
Expand Down

0 comments on commit c455b21

Please sign in to comment.