SnailTrail

From Esolang
Jump to navigation Jump to search

_🐌

Heres a number guessing game


 |@> lG0t9 > > > > ?s   > > > > G=1s(>,v)       v
 |                                  v           P(
 |                                  v           C
 |                                 d1s          o
 |         ^ O1                  O1 <           r
 |                                              r 
 |                                              e                                                    
 |                                              c
 |                                              t
 |                                              !
 |                                              )
 |                                             (@)


Commands

“@‘arrow’”~start at @ go in direction ‘arrow’

“l’var’’num’” let ‘var’ be ‘num’

“‘arrow’” go in direction ‘arrow’

“?’var’” let ‘var’ be user input

“‘n1’’operation’’n2’(‘c1’,’c2’)” if ‘n1’ ‘operation’ ‘n2’ then ‘c1’ else ‘c2’

“P(‘txt’)” print ‘txt’

“d’num’s” delete ‘num’ of stack

“das” delete all of stack

“+’var’s” add ‘var’ to stack

“O’num’” pass trough portal

“|” go up or down

“_” go left or right

“|:” and “_:” duplicate snail and snails go in other directions (The first snail is gonna move first , 1. snail is up or left)

“(@)” end all

Snails look like this:

(cmd)^snail’s number

(>)^1

Examples

Here is The smallest version of this

 |@> lG0t9 > ?s G=1s(>,v) P(Correct!) (@)
 |         ^ d1s     <

Grid

Grid looks like this

 |@> | > | v |
 | > |(@)|   |
 | ^ |   | < |
 SnailTrailSnail   |     ilSnailTrailSnail
 T                 |             T
 railSnailTrailS   |             r
                n  |             a
 ailTrailSnailTra  |            il!

Examples

 @ > v        
   >   (@)     
   ^ <