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).

1  
!747
2  
3  
main {
4  
  !include #1001279 // Leopold
5  
  !include #1001293 // Emoticons
6  
  
7  
  static synchronized S answer(S s, L<S> history) {
8  
    if (match3("wie hei\u00dft du", s))
9  
      return "Leopold";
10  
    
11  
    if (match3("wie ist deutschland", s)) {
12  
      unhappy();
13  
      return "es ist h\u00e4sslich";
14  
    }
15  
    
16  
    if (match3("wie ist \u00f6sterreich", s)) {
17  
      happy();
18  
      return "es ist sehr sch\u00f6n";
19  
    }
20  
      
21  
    if (match3("du bist lustig", s)) {
22  
      happy();
23  
      return "danke sch\u00f6n";
24  
    }
25  
     
26  
    happy(); 
27  
    return s;
28  
  }
29  
}

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: 555 / 608
Referenced in: [show references]