Moving donut

From Esolang
Jump to navigation Jump to search

Moving donut is based off Mice in a maze and HQ9+.

Commands

The BF commands are the same, every lowercase letter prints itself, O is the donut, A toggles ASCII output mode for BF commands, and # is the wall.

Donut movement

The donut moves right until it hits a wall, than it rotates clockwise and tries again.

Examples

Hello World

  ######
  #dlro#
######w#
#Ohello#
########

Cat

########
#O+[,.]#
########

Truth machine

####
#.]#
##.#
 #[#
 #,#
#OA#
####

Moving donut is a very interesting language

This program concocts a meandering plan in its pursuit to state the message “movingdonutisaveryinterestinglanguage”.

##############
#Omovingdonut#
#     ######i#
#     #yrevas#
#      i######
#      n#
#      t#
#      e#
#      r#
#      e#
#      s#
#      t#
#      i#
##     n#
#augnalg#
#g######
#e#
###

Interpreter

  • Common Lisp implementation of the Moving donut programming language.