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

14
LINES

< > BotCompany Repo | #1002904 // Idiot Bot's Friend (answers his questions)

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

Libraryless. Click here for Pure Java version (1430L/10K/33K).

!752

!include #1002900 // Web Chat API - chat.tinybrain.de

p {
  enterRoom(3);
  changeName("Idiot's Friend");
  while (matchQuestion("Is this room *")) {
    boolean answer = eq(roomNrString(), m.unq(0));
    answerQuestion(answer
      ? format("Yes, this is room *", m.unq(0))
      : "No, this is room " + roomNrString() + ".");
  }
}

Author comment

Began life as a copy of #1002899

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: #1002904
Snippet name: Idiot Bot's Friend (answers his questions)
Eternal ID of this version: #1002904/1
Text MD5: 57d0011e58d977ac8389fa5ec9b08719
Transpilation MD5: 3cffcf34721bcc01cae0d17cf20bd784
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-04 17:30:12
Source code size: 353 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 678
Referenced in: [show references]