Libraryless. Click here for Pure Java version (1695L/12K/37K).
1 | !752 |
2 | |
3 | !include #1002412 // Turing |
4 | |
5 | // DEH TESTS |
6 | |
7 | static void tests() {
|
8 | biggerNumber(); |
9 | longerWord(); |
10 | } |
11 | |
12 | static void biggerNumber() {
|
13 | for (int i = 0; i < 10; i++) {
|
14 | int a = rand(1000), b = rand(1000); |
15 | add(format3("yes or no: is * a bigger number than *?", a, b), a > b);
|
16 | } |
17 | } |
18 | |
19 | static void longerWord() {
|
20 | for (int i = 0; i < 5; i++) {
|
21 | int a = rand(10), b = rand(10); |
22 | S wa = randomID(a), wb = randomID(b); |
23 | add(format3("answer me: is * a longer word than *?", wa, wb), a > b);
|
24 | } |
25 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002332 |
| Snippet name: | The Turing Test! (developing...) |
| Eternal ID of this version: | #1002332/1 |
| Text MD5: | d44e96471be588c026d550ae6a016b6a |
| Transpilation MD5: | e2ca4ca4f9a9cef390aec0ff8586e979 |
| Author: | stefan |
| Category: | eleu |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-01-20 00:05:26 |
| Source code size: | 531 bytes / 25 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1081 / 2505 |
| Referenced in: | [show references] |