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

21
LINES

< > BotCompany Repo | #1001280 // Unterhaltung mit Leopold 3 (refactoring)

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

Libraryless. Click here for Pure Java version (704L/6K/18K).

!747

main {
  !include #1001279 // Leopold
  
  static synchronized S answer(S s, L<S> history) {
    if (match3("wie hei\u00dft du", s))
      return "Leopold";
    
    if (match3("wie ist deutschland", s))
      return "es ist h\u00e4sslich";
    
    if (match3("wie ist \u00f6sterreich", s))
      return "es ist sehr sch\u00f6n";
      
    if (match3("du bist lustig", s))
      return "danke sch\u00f6n";
    
    return s;
  }
}

Author comment

Began life as a copy of #1001278

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001280
Snippet name: Unterhaltung mit Leopold 3 (refactoring)
Eternal ID of this version: #1001280/1
Text MD5: 70fdc755902e43a848ed9cd3cdfde065
Transpilation MD5: 07dddcddbdbaf446e28ba6e09f0fbe4a
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-06 19:08:15
Source code size: 458 bytes / 21 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 508 / 546
Referenced in: [show references]