sbool solveCandidatesRiddle_debug = true; static S solveCandidatesRiddle(L<Lisp> facts) { // assume question is in last line of riddle Lisp q = last(facts); print("Solving: " + q); L<S> candidates = subList(q.heads(), 1); ret web_candidateWithMostConfirms(facts, q.s(0), candidates); } static S solveCandidatesRiddle(L<Lisp> facts, S riddle) { ret solveCandidatesRiddle(riddle(facts, riddle)); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007675 |
Snippet name: | solveCandidatesRiddle - solve a riddle checking different candidates |
Eternal ID of this version: | #1007675/3 |
Text MD5: | 39da61a26315721166a9a423a3b89a11 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-01 13:21:59 |
Source code size: | 423 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 583 / 566 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |