01-14-2021, 08:12 AM
Cameron,
Thanks for the response.
Printing to the status tab would be great for information such as integers, booleans and directions etc. Bigger stuff would be overwhelming and better in a file. Maybe the status would only have the first 50 characters or so.
I suggest the output should also go to the trial because:
1. You already have a trial format which is useful for debugging in itself.
2. Debugging stuff output there would be in context.
3. You can apply textual analysis tools such as diff and search to a trial file.
The dump stat idea would also be useful to us mortals, but would be something of a last resort. I suggest that you have a mode where you can replay a trial file and Ludii would output a dump file. You could then cross-reference the trial file and the dump stat file. So then you would not turn it on all the time, but only when you saw something you did not understand.
I suggest "(debug ...)" rather than "(print ...)" because in the latter case people might try to use it in a non-debugging way as an alternative to "note", especially since note only takes strings.
Thanks for the response.
Printing to the status tab would be great for information such as integers, booleans and directions etc. Bigger stuff would be overwhelming and better in a file. Maybe the status would only have the first 50 characters or so.
I suggest the output should also go to the trial because:
1. You already have a trial format which is useful for debugging in itself.
2. Debugging stuff output there would be in context.
3. You can apply textual analysis tools such as diff and search to a trial file.
The dump stat idea would also be useful to us mortals, but would be something of a last resort. I suggest that you have a mode where you can replay a trial file and Ludii would output a dump file. You could then cross-reference the trial file and the dump stat file. So then you would not turn it on all the time, but only when you saw something you did not understand.
I suggest "(debug ...)" rather than "(print ...)" because in the latter case people might try to use it in a non-debugging way as an alternative to "note", especially since note only takes strings.