Ludii Forum
Ludii Web Player API - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Suggestions (https://ludii.games/forums/forumdisplay.php?fid=10)
+--- Forum: Ludii Features / Services (https://ludii.games/forums/forumdisplay.php?fid=11)
+--- Thread: Ludii Web Player API (/showthread.php?tid=1055)



Ludii Web Player API - paulboes - 07-06-2022

This is a somewhat innocent question, I'm not an app developer.


tl;dr I believe my central question to be: Is it possible to play ludemes against the AI used by the Web player via an API instead?

Context: I would like to build (and potentially commercially distribute) a (physical) board with pieces such that the board can be used to play a large range of different games from Ludii. However, since people will not in general know them, in order to help them develop a feeling for game strategies, I would love to provide a (free) app alongside in which the pieces look the same as on my physical board, and where they can play those games against a computer. Currently, I could simply send them to the web player, but it would be very nice if the design of the pieces/board on the screen corresponded to the design of the physical pieces/board, so with access to an API I could build a web app using my own game layout but interact with Ludii via the API. 

Cheers, Paul


RE: Ludii Web Player API - MatthewStephenson - 07-06-2022

Hi Paul,

Unfortunately we do not have any API for the web player.
If you want to edit a specific game to support different board/piece designs, this can be done within each game's description file that can be loaded within the regular Ludii desktop application, but it isn't possible to modify the website versions of the games beyond their default descriptions.
This is due to a combination of technical limitations of the website version, as well as the fact that we don't have the manpower to actively support separate website and desktop version of Ludii to the same extent.

Cheers,
Matthew


RE: Ludii Web Player API - paulboes - 07-08-2022

Thanks Matthew, understood. If I was really keen I could probably create an API endpoint myself, within the scope of Ludii's license. Let's see :)