Download Jar. Libraryless. Click here for Pure Java version (19287L/137K).
1 | !7 |
2 | |
3 | !include #1012676 |
4 | |
5 | p {
|
6 | ai_alternativeSmartBot(); |
7 | ai_useThoughtSpaces(true); |
8 | |
9 | ActualThoughtSpace myTS = new ActualThoughtSpace(currentThoughtSpace()); |
10 | thoughtSpace(myTS); |
11 | |
12 | myTS.blockedPatterns.add(t3("Haskell", "is", "$Y"));
|
13 | assertContainsIC(print(ai_texts("Java", "is", "$X")), "a programming language");
|
14 | |
15 | poorMansProfiling(); |
16 | repeat 100 {
|
17 | myTS.blockedPatterns.add(t3("Java", "is", "$Y"));
|
18 | assertDoesntContainIC(print(ai_texts("Java", "is", "$X")), "a programming language");
|
19 | |
20 | myTS.blockedPatterns.remove(t3("Java", "is", "$Y"));
|
21 | assertContainsIC(print(ai_texts("Java", "is", "$X")), "a programming language");
|
22 | } |
23 | poorMansProfiling_stopAndPrintResults(); |
24 | print("OK");
|
25 | } |
Began life as a copy of #1012651
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: | #1012664 |
| Snippet name: | Test Thought Blocking v1 (OK) |
| Eternal ID of this version: | #1012664/7 |
| Text MD5: | 98c577d4e85bd13bcc755ca563f176c5 |
| Transpilation MD5: | 644c2b7cabf7ddf6594ea58a73162116 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-10 02:55:06 |
| Source code size: | 742 bytes / 25 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 753 / 1843 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |