Libraryless. Click here for Pure Java version (4783L/31K/104K).
!752 static BWImage bw; static Thread producer; static Reproducing rp; !include #1004556 // class Reproducing p { rp = new Reproducing; bw = rp.bw = loadBWImage("#1004541"); rp.imageSurfaceToUpdateWithBest = showImage(bw.getBufferedImage()); rp.startProduction = r { produce() }; // Note: This doesn't terminate as it keeps looking for better // solutions. It does write the shortest100.txt file in the mean // time which is your real output. rp.findShortest100_openEnd(); } static void produce() { cancelThread(producer); producer = new Thread(r { // STRATEGY! rp.push(fullGrab(bw)); int w = 1; while licensed { rp.push(new RandomSolid().reproduce(bw)); S best = rp.bestDesc(); if (best != null) rp.push(varyFloat(best)); if (w < bw.getWidth()) rp.push(hrepeat(bw, w++)); } }, "Producer"); producer.start(); }
Began life as a copy of #1004551
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004557 |
Snippet name: | Reproduce Image 5 (using include) |
Eternal ID of this version: | #1004557/1 |
Text MD5: | 8aabe0a55d6fce457e272060e5c28ff0 |
Transpilation MD5: | cdfd0c4205db69fe4a84d2f9728eb71d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-21 15:12:18 |
Source code size: | 949 bytes / 39 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 589 / 660 |
Referenced in: | [show references] |