Ludii Forum
Remote Time Left with Ludii API - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About Ludii (https://ludii.games/forums/forumdisplay.php?fid=14)
+--- Thread: Remote Time Left with Ludii API (/showthread.php?tid=690)



Remote Time Left with Ludii API - Quentin Cohen-Solal - 08-25-2021

Hello, 

I would like to know if there is a method in the Ludii library that would allow one to know how much time is left during a remote match.

Thank you.


RE: Remote Time Left with Ludii API - MatthewStephenson - 08-25-2021

Hi Quentin,

Currently there isn't, however in the next release you can import app.StartDesktopApp and then call:

StartDesktopApp.desktopApp().manager().settingsNetwork().playerTimeRemaining()

This will return an int array with the time left for each player.

Cheers,
Matthew


RE: Remote Time Left with Ludii API - Quentin Cohen-Solal - 08-25-2021

Thank you so much.


RE: Remote Time Left with Ludii API - Quentin Cohen-Solal - 08-25-2021

When will the next release take place?


RE: Remote Time Left with Ludii API - MatthewStephenson - 08-26-2021

We are planning to have the next release this Friday


RE: Remote Time Left with Ludii API - Quentin Cohen-Solal - 08-26-2021

Can we use this method to find out if the timeout option is used?

Thank you.


RE: Remote Time Left with Ludii API - MatthewStephenson - 08-26-2021

Hi Quentin,

The array (should) contain only zeros if no timeout option is being used.

Cheers,
Matthew