Closed nathanbabcock closed 2 years ago
A PR changing the starter kits is linked above ^
The other approach would be to change the parameter order in the Viewer instead. If that's preferable, I'll cancel the PR I created and leave the kits the same. Either way the comment in Game/index.ts
should be updated to match the syntax used across the Viewer and the kits.
Mentioned a month ago in this Kaggle discussion: https://www.kaggle.com/c/lux-ai-2021/discussion/267542
Internally, the Lux AI Design interprets the
DEBUG_ANNOTATE_TEXT
command as follows:Source: src/Game/index.ts:1078
However, the Typescript kit sends the values in the wrong order:
Source: kits/ts/simple/lux/Agent.ts:215
Note the reversal of
fontsize
andmessage
. Switching these params to the order expected by the internal game logic fixes the issue. Other language kits have the same issue.