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

29
LINES

< > BotCompany Repo | #1001290 // Unterhaltung mit Leopold 4 (with pictures)

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

Libraryless. Click here for Pure Java version (976L/8K/25K).

!747

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

Author comment

Began life as a copy of #1001280

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: #1001290
Snippet name: Unterhaltung mit Leopold 4 (with pictures)
Eternal ID of this version: #1001290/1
Text MD5: 1c5613d7a6b52b6a9b598c44a3abfd7c
Transpilation MD5: a8ef8c5e3f6ef9c72a265290aa37d4ee
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-06 20:31:00
Source code size: 585 bytes / 29 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 550 / 602
Referenced in: [show references]