1 | static S callStaticAnswerMethod(L bots, S s) {
|
2 | for (O c : bots) try {
|
3 | S answer = callStaticAnswerMethod(c, s); |
4 | if (!empty(answer)) ret answer; |
5 | } catch (Throwable e) {
|
6 | print("Error calling " + getProgramID(c));
|
7 | e.printStackTrace(); |
8 | } |
9 | ret null; |
10 | } |
11 | |
12 | static S callStaticAnswerMethod(O c, S s) {
|
13 | S answer = (S) callOpt(c, "answer", s, litlist(s)); |
14 | if (answer == null) |
15 | answer = (S) callOpt(c, "answer", s); |
16 | return emptyToNull(answer); |
17 | } |
18 | |
19 | static S callStaticAnswerMethod(S s) {
|
20 | ret callStaticAnswerMethod(mc(), s); |
21 | } |
22 | |
23 | static S callStaticAnswerMethod(S s, L<S> history) {
|
24 | ret callStaticAnswerMethod(mc(), s, history); |
25 | } |
26 | |
27 | static S callStaticAnswerMethod(O c, S s, L<S> history) {
|
28 | S answer = (S) callOpt(c, "answer", s, history); |
29 | if (answer == null) |
30 | answer = (S) callOpt(c, "answer", s); |
31 | return emptyToNull(answer); |
32 | } |
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: | 970 / 2581 |
| Referenced in: | [show references] |