Car

From Esolang
Jump to navigation Jump to search

Car is a 2d Programming language

Example

           # # #
         # l f l #
 [ f f p f r # r f f f F #
         # l r l #
           # f #
             F
             #


Its a roundabout

That outputs 02


Commands

 “f” move forward until you hit a #
 if you hit a # a tow truck will help
 (tow truck also counts as a car)
 “F” move forward until you hit a #
 if you hit a # turn 180 degrees
 “r” turn right if you hit a # and 
 add 1 to car
 else keep moving forward
 “l” turn left if you hit a # and
 subtract 1 from car
 else keep moving forward
 “#” its just a wall