Hi again,
We actually already have this mechanism in place! I forgot about the (note ...) ludeme which prints messages to the Status panel. Eric has just expanded it to handle a wider range of input parameters, which should make it useful for debugging purposes:
Just put a note in your .lud code where you want something evaluated and printed to the Status panel. This will appear in the next Ludii release.
Eric also suggested adding a debug window in which the user can enter ludeme code then evaluate it for the current board state. We're looking into adding that as well.
Regards,
Cameron
We actually already have this mechanism in place! I forgot about the (note ...) ludeme which prints messages to the Status panel. Eric has just expanded it to handle a wider range of input parameters, which should make it useful for debugging purposes:
Code:
<note> ::= (note [player:<int> | player:<roleType>]
(string | <int> | <ints> | <float> | <boolean> |
<sites> | <range> | <direction> | <graph>)
[to:<moves.player> | to:<roleType>])
Just put a note in your .lud code where you want something evaluated and printed to the Status panel. This will appear in the next Ludii release.
Eric also suggested adding a debug window in which the user can enter ludeme code then evaluate it for the current board state. We're looking into adding that as well.
Regards,
Cameron