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).

!752

!include #1004873 // Sucker
!include #1004875 // Feeder

static Sucker sucker;
static Feeder feeder;

p {
  File f = //getNewestFile(allEventLogs());
    getProgramFile("#1004309", "brainstorm/event.log");
  assertTrue("Not chat log found at " + f2s(f), f.exists());
  L<S> log = collect(scanEventLogForPosts(f), "text");
  printStructure("Log: ", log);
  S text = joinLines(log);
  sucker = new Sucker(text);
  print("Score: " + sucker.highestScore());
  
  feeder = new Feeder(sucker, "#1004744", "#1004720");
  feeder.resetStrategies();
  
  try {
    while licensed {
      feeder.oneRound();
      if (feeder.highestScore() >= 100)
        feeder.nextPivotLength();
    }
  } catch CleanExit e {
    print("Clean exit: " + e.getMessage());
  } finally {
    print("Final score: " + sucker.highestScore() + " at pivot length " + feeder.pivotLength());
  }
}

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: 546 / 635
Referenced in: [show references]