Libraryless. Click here for Pure Java version (9859L/66K/233K).
1 | !7 |
2 | |
3 | concept Happiness { |
4 | long level; |
5 | } |
6 | |
7 | p { db(); bot(); } |
8 | |
9 | answer { |
10 | if "thanks" ret happy(); |
11 | if "i love you" ret happy(); |
12 | if "you did good" ret happy(); |
13 | if "nice" ret happy(); |
14 | |
15 | if "how happy are you" ret "I am " + happiness().level + " times happy"; |
16 | } |
17 | |
18 | sS happy() { |
19 | happiness().level++; |
20 | happiness().change(); |
21 | tempShowEmotion("happy"); |
22 | ret ":-)"; |
23 | } |
24 | |
25 | static Happiness happiness() { ret uniq(Happiness); } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009363 |
Snippet name: | Happy Bot [OK except for bug in tempShowEmotion] |
Eternal ID of this version: | #1009363/3 |
Text MD5: | 47975877e9d02ea408f03af1411d0825 |
Transpilation MD5: | 6679b022975b64f23820bea5ffb042af |
Author: | stefan |
Category: | javax / a.i. / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-24 19:55:56 |
Source code size: | 448 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 647 / 725 |
Version history: | 2 change(s) |
Referenced in: | [show references] |