Directionation

From Esolang
Jump to navigation Jump to search

Directionation is an esolang made by User:Tommyaweosme

Commands

The commands are:

T pointer (starts going right)
> go right
< go left
^ go up
V go down
? go random
O toggle output mode
A toggle add mode
S toggle subtract mode
C toggle check mode
I sets value to user input before script starts

Escaped pointers dont mess up anything, and when every pointer is escaped, the program is terminated.

Modes

Output mode outputs every value that the pointer runs across.

Add mode adds together every value that the pointer runs across.

Subtract mode subracts the first value it runs over from the second, and changes the second.

Check mode splits off a new pointer going up whenever it runs onto a positive value.

Scripts

hello world

TOhelloV
  dlorw<

kiwiscript

TOkiwi

XKCD random number

TOv
  >4<

actual random number (1-3)

   V
   3
TO>?2<
   1
   ^

truth machine

   V
   O
TC>I
   ^

cat

TOI

infinite loop

T>V
 ^<

5 bottles of beer

V                                   <
TS  1  V                            
V   <                               
>O  5    bottles of beer on the wall^
    ^  <

dna-code

  V
>t?c<
TO?<
  g
  ^

logic gates

and

   >S1V
   I  o
TAI^ ^<