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

21
LINES

< > BotCompany Repo | #1001517 - Object Counter Bot (developing)

JavaX source code - run with: x30.jar

1  
!747
2  
3  
m {
4  
  p {
5  
    makeAndroid3("Object Counter Bot.");
6  
  }
7  
 
8  
  static synchronized S answer(S s) { 
9  
    new Matches m;
10  
    if (match3("count the *", s, m)) {
11  
      S ms = m.unq(0);
12  
      L list = findAll(ms);
13  
      ret n(len(list), ms);
14  
    }
15  
    ret null;
16  
  }
17  
18  
  static L findAll(S what) {
19  
    ret cry();
20  
  }
21  
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1001517
Snippet name: Object Counter Bot (developing)
Eternal ID of this version: #1001517/1
Text MD5: 10bc0ca8a14f2a86229db2eea868e315
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-21 19:52:44
Source code size: 333 bytes / 21 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 385 / 301
Referenced in: [show references]

Formerly at http://tinybrain.de/1001517 & http://1001517.tinybrain.de