This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --->--->>>>->->->>>>>-->>>>>>>>>>>>>>>>>>+>>++++++++++[ initialization | |
| <<++[ output board | |
| --<+<<+<<+>>>>[ | |
| >[<->>+++>>[-]<<<+[<++>>+>>-<<<--]]+>+++++[>>++++++++++<<-] | |
| >>-.[-]>>+[<<<<+>>+>>-]<<<<<<[>+<-]<< | |
| ]++++++++++.[-]>++ | |
| ]-->>[-->[-]>]<<[ if game not over | |
| >>--[ while stack isn't empty | |
| -[ | |
| -[ fn 0: get move from user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =256 R +4 . +1 | |
| :2 | |
| =2 . . . =0 . . | |
| -256 *5 ! | |
| -0 +7 . . +6 . . . *5 ! | |
| -0 W *3 ! | |
| -0 *8 ! | |
| -0 +9 . . *3 :5 | |
| -256 =1 +3 ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +7 +4 +3 :10 | |
| =2:2 | |
| =3:3 | |
| =4:4 | |
| =5:5 | |
| =6:6 | |
| =7:7 | |
| =8:8 | |
| =9:9 | |
| -8 =120 +12 *11 . =151 *11 . =47 *11 -3 $ *3 -7 $ *7 . -0 *8 :13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -3 *2 -7 *7 *7 -5 +10. *4 -4 . -0 +6 . *8 $ -2 . :1 | |
| =9 *3 | |
| =3 :3 | |
| =1 -0 . | |
| =5 :5 | |
| -8 . . . *3 *7 ! | |
| =7 :7 | |
| =8 :8 | |
| =9 :9 | |
| -0 =4 . +9 +3 +7 -3 w -9 +11. *9 -7 *5 :1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +2 . *6 +3 . . . -0 . -6 +5 :1 | |
| -1 -0 =1 . -5 +4 w -4 *4 :1 | |
| -1 . -0 . -0 =4 *6 -0 +5 :1 | |
| =4 :4 | |
| =5 :5 | |
| . =2 -0 . . =6 . *6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| r | |
| w +5 . *4 +3 $ . . -0 . -6 :2 | |
| . . -0 . -0 =4 *3 -0 :2 | |
| . . -0 . . =6 . *3 ! | |
| -1 -0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| w *2 =1 :1 | |
| =1 $ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* drui.c -- Rui interpreter | |
| Daniel Cristofani | |
| 7/2020 */ | |
| /* A reasonably fast interpreter for the Rui programming language, as described at https://esolangs.org/wiki/Rui | |
| This uses the GMP bignum library, so it will need to be compiled with something like | |
| gcc drui.c -O2 -o drui -lgmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| r +5 +4 . | |
| . *3 -1 -4 $ *4 +5 -2 :2 | |
| . . . *4 =2 . | |
| =4 :4 | |
| =1 ~ -0 =1 . -4 w |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| r *7 | |
| =0 +3 . -7 *7 . . . . . . *4 -1 -7 +9 +8 +8 :2 | |
| -8 . *8 ~ . . -0 =1 ~ . . -9 w +10 -7 . *5 -8 *6 :2 | |
| . :7 | |
| =100 *7 ! | |
| =10 *8 ! | |
| =7:7 | |
| =8:8 | |
| =9:9 | |
| . -0 *11 ! |