Hello,
is anyone aware of any free tablebase web service that I could use in an open source GPL project (a chess games viewer extension for google chrome, see http://code.google.com/p/pgn4web/wiki/B ... ogleChrome)?
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).
There's something here http://www.lokasoft.nl/tbapi.aspx but I could not make the SOAP request work with javascript. Other services like the one at the shredder website only allow manually entering the FEN string on a web page and don't seem to allow queries from a program.
Thanks.
any free tablebase web service?
-
- Posts: 489
- Joined: Sat Jan 21, 2006 10:43 am
- Sign-up code: 10159
- Location: Reading, UK
- Contact:
Re: any free tablebase web service?
Would certainlly be worth knowing if the Lokasoft URL is still live and usable ... anyone had any success with it?
g
g
Re: any free tablebase web service?
the webservice seems fine, I tried with the python-suds library and this script works:guyhaw wrote:Would certainlly be worth knowing if the Lokasoft URL is still live and usable ... anyone had any success with it?
Code: Select all
from suds.client import Client
url = 'http://www.lokasoft.nl/tbweb/tbapi.wsdl'
client = Client(url)
result = client.service.ProbePosition('8/8/8/8/1p2P3/1k1KP3/8/8 w - - 0 1')
print result
Re: any free tablebase web service?
Live: yes http://www.lokasoft.nl/tbapi.aspxguyhaw wrote:knowing if the Lokasoft URL is still live and usable ...
Usable: not sure (only 5-men...)
- Kirill Kryukov
- Site Admin
- Posts: 7399
- Joined: Sun Dec 18, 2005 9:58 am
- Sign-up code: 0
- Location: Mishima, Japan
- Contact:
Re: any free tablebase web service?
Why not just request the page through HTTP and parse it? And if your software makes so many requests that parsing speed becomes an issue, then I guess the database server owner won't be very happy with the load you generate, and the server side will become the limiting factor.
KCEC | EGTB Online | 3x3 Chess | 3x4 Chess | 4x4 Chess | Longest Checkmates | EGTB Test Suite | Opening Sampler | EGTB Bounty | NULP
Re: any free tablebase web service?
If a site provides a public API like the lokasoft site, you can count on the site owner being happy for you to use their site as a tablebase service and also you can expect the format of the API to remain the same and your code to get the info to work.Kirill Kryukov wrote:Why not just request the page through HTTP and parse it? And if your software makes so many requests that parsing speed becomes an issue, then I guess the database server owner won't be very happy with the load you generate, and the server side will become the limiting factor.
If you reverse-engineer a site and manage to extract the tablebase assessment parsing the HTML of the page, then you have two problems: the site owner might not be happy their site being used that way without permission and the layout of the page might change, breaking your routine to parse the tablebase info.
Re: any free tablebase web service?
I find this service useful: http://www.k4it.de/index.php?topic=egtb&lang=en
But as you say, you need javascript access. I'm not sure what that site offers besides FEN input..
But as you say, you need javascript access. I'm not sure what that site offers besides FEN input..