Transpiled version (1992L) is out of date.
!759 sS coreName = /*"Let's do GMail"*/ "Simple Hello"; static new L<Dialog> dialogs; static OccTree<E> tree; p { dialogs = loadDialogs(coreName); tree = dialogs2occTree(dialogs); testBot(dummyBot()); } sclass Scores { int good, bad; } static void testBot(O bot) { new Scores scores; testTree(bot, tree, scores); } static void testTree(O bot, OccTree<E> tree, Scores scores) { if (tree.followUp.isEmpty()) ret; for (E e : keys(tree.followUp)) { if (eq(e.state, "good")) ++scores.good; else if (eq(e.state, "bad")) ++scores.bad; testTree(bot, tree, scores); } } static O dummyBot() { ret new O { L<E> get(L<E> input) { ret emptyList(); } }; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003326 |
Snippet name: | GMail Bot Tester (dev.) |
Eternal ID of this version: | #1003326/1 |
Text MD5: | e41a9ad4628841e29a5b8a542ad6f579 |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-06-19 23:16:31 |
Source code size: | 739 bytes / 39 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 665 / 704 |
Referenced in: | [show references] |