static S callStaticAnswerMethod(L bots, S s) { for (O c : bots) try { S answer = callStaticAnswerMethod(c, s); if (!empty(answer)) ret answer; } catch (Throwable e) { print("Error calling " + getProgramID(c)); e.printStackTrace(); } ret null; } static S callStaticAnswerMethod(O c, S s) { S answer = (S) callOpt(c, "answer", s, litlist(s)); if (answer == null) answer = (S) callOpt(c, "answer", s); return emptyToNull(answer); } static S callStaticAnswerMethod(S s) { ret callStaticAnswerMethod(mc(), s); } static S callStaticAnswerMethod(S s, L<S> history) { ret callStaticAnswerMethod(mc(), s, history); } static S callStaticAnswerMethod(O c, S s, L<S> history) { S answer = (S) callOpt(c, "answer", s, history); if (answer == null) answer = (S) callOpt(c, "answer", s); return emptyToNull(answer); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001800 |
Snippet name: | callStaticAnswerMethod |
Eternal ID of this version: | #1001800/1 |
Text MD5: | 3deb7d3a7030c6c8b84842a08d27d901 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-10-22 02:14:57 |
Source code size: | 885 bytes / 32 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 697 / 2303 |
Referenced in: | [show references] |