1 | static L<RuleWithParams> nlLogic_highestScore(L<RuleWithParams> battleSpace, final Map<S, Int> ruleScores) { |
2 | int highest = Integer.MIN_VALUE; |
3 | for (RuleWithParams r : battleSpace) |
4 | highest = max(highest, toInt(mapGet(ruleScores, r.rule.globalID))); |
5 | final int _highest = highest; |
6 | ret [RuleWithParams r : battleSpace | toInt(mapGet(ruleScores, r.rule.globalID)) == _highest]; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017868 |
Snippet name: | nlLogic_highestScore |
Eternal ID of this version: | #1017868/3 |
Text MD5: | c2f42e5aaa62cd010afa2cdf7b5a66df |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-18 21:06:23 |
Source code size: | 391 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 293 / 325 |
Version history: | 2 change(s) |
Referenced in: | [show references] |