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

10
LINES

< > BotCompany Repo | #1013754 // input - get input from console for robos (disabled)

JavaX fragment (include)

static S input(S msg) {
  say(msg);
  ret input();
}

static S input() {
  S s = readLine_enableConsole();
  if (ai_enabled() && s != null) post("User", "said", quote(s));
  ret s;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013754
Snippet name: input - get input from console for robos (disabled)
Eternal ID of this version: #1013754/7
Text MD5: 385321a24eb0a010e5dce4932fb2a877
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-10 22:39:28
Source code size: 191 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 377 / 405
Version history: 6 change(s)
Referenced in: [show references]