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

10
LINES

< > BotCompany Repo | #1017033 // robo_input - get input from console for robos

JavaX fragment (include)

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

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

Author comment

Began life as a copy of #1013754

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: #1017033
Snippet name: robo_input - get input from console for robos
Eternal ID of this version: #1017033/1
Text MD5: cc92b9027494458d0709a6c00f38f5df
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:21
Source code size: 206 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 330
Referenced in: [show references]