any free tablebase web service?
Posted: Thu Sep 22, 2011 11:16 pm
Hello,
is anyone aware of any free tablebase web service that I could use in an open source GPL project (an extension for google chrome)?
What I'm looking for is a service that I could query (with javascript from my extension) sending a probe request with a FEN string as a parameter and receiving back the tablebase lookup result (mate in X, draw, position not found, error) and (optionally) a PV.
There's something here http://www.lokasoft.nl/tbapi.aspx but it support 5 men an only very few 6 men set. Other services like the one at the shredder website only allow manually entering the FEN string.
Alternatively, is anyone (that already owns a good set of 6 men tablebase) interested in building such a web service?
Ideally, you'd accept a query like http://yoursite.com/tablebaseprobe?fen= ... 0-%200%201 where 8/7p/8/8/8/1B6/K6P/2k5%20w%20-%20-%200%201 is the URL encoding of a fen string "8/7p/8/8/8/1B6/K6P/2k5 w - - 0 1" and return an xml encoded response like these:
<tablebaseprobe status="ok" fen="8/7p/8/8/8/1B6/K6P/2k5 w - - 0 1" assessment="+M67" pv="whatever the PV is" /> for a successful query
<tablebaseprobe status="position not found" fen="8/7p/8/8/8/1B6/K6P/2k5 w - - 0 1" /> if the position is not found in the available tablebase
<tablebaseprobe status="error" fen="8/7p/8/8/8/1B6/K6P/2k5 w - - 0 1" /> for a general error
Thanks.
is anyone aware of any free tablebase web service that I could use in an open source GPL project (an extension for google chrome)?
What I'm looking for is a service that I could query (with javascript from my extension) sending a probe request with a FEN string as a parameter and receiving back the tablebase lookup result (mate in X, draw, position not found, error) and (optionally) a PV.
There's something here http://www.lokasoft.nl/tbapi.aspx but it support 5 men an only very few 6 men set. Other services like the one at the shredder website only allow manually entering the FEN string.
Alternatively, is anyone (that already owns a good set of 6 men tablebase) interested in building such a web service?
Ideally, you'd accept a query like http://yoursite.com/tablebaseprobe?fen= ... 0-%200%201 where 8/7p/8/8/8/1B6/K6P/2k5%20w%20-%20-%200%201 is the URL encoding of a fen string "8/7p/8/8/8/1B6/K6P/2k5 w - - 0 1" and return an xml encoded response like these:
<tablebaseprobe status="ok" fen="8/7p/8/8/8/1B6/K6P/2k5 w - - 0 1" assessment="+M67" pv="whatever the PV is" /> for a successful query
<tablebaseprobe status="position not found" fen="8/7p/8/8/8/1B6/K6P/2k5 w - - 0 1" /> if the position is not found in the available tablebase
<tablebaseprobe status="error" fen="8/7p/8/8/8/1B6/K6P/2k5 w - - 0 1" /> for a general error
Thanks.