Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

33
LINES

< > BotCompany Repo | #1004871 // Process "Brainstorm" [Sim Predict, dev.]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 5262K of libraries. Click here for Pure Java version (3680L/25K/82K).

1  
!752
2  
3  
!include #1004873 // Sucker
4  
!include #1004875 // Feeder
5  
6  
static Sucker sucker;
7  
static Feeder feeder;
8  
9  
p {
10  
  File f = //getNewestFile(allEventLogs());
11  
    getProgramFile("#1004309", "brainstorm/event.log");
12  
  assertTrue("Not chat log found at " + f2s(f), f.exists());
13  
  L<S> log = collect(scanEventLogForPosts(f), "text");
14  
  printStructure("Log: ", log);
15  
  S text = joinLines(log);
16  
  sucker = new Sucker(text);
17  
  print("Score: " + sucker.highestScore());
18  
  
19  
  feeder = new Feeder(sucker, "#1004744", "#1004720");
20  
  feeder.resetStrategies();
21  
  
22  
  try {
23  
    while licensed {
24  
      feeder.oneRound();
25  
      if (feeder.highestScore() >= 100)
26  
        feeder.nextPivotLength();
27  
    }
28  
  } catch CleanExit e {
29  
    print("Clean exit: " + e.getMessage());
30  
  } finally {
31  
    print("Final score: " + sucker.highestScore() + " at pivot length " + feeder.pivotLength());
32  
  }
33  
}

Author comment

Began life as a copy of #1003979

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: #1004871
Snippet name: Process "Brainstorm" [Sim Predict, dev.]
Eternal ID of this version: #1004871/1
Text MD5: f8cc266aadb87a4427bde89a9475ded5
Transpilation MD5: 1264f958fcb844a8b0ab755e668983bc
Author: stefan
Category: javax / talking robots
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-11 23:22:54
Source code size: 899 bytes / 33 lines
Pitched / IR pitched: No / No
Views / Downloads: 549 / 639
Referenced in: [show references]