LongJump
Jump to navigation
Jump to search
LongJump is a 2D fungeoid invented by User:None1.
Memory
It has 2 unbounded signed accumulators: A and B, both initialized with 0.
Grid
A Nopfunge-styled grid is used. Both line numbers and column numbers are 0-indexed. Execution starts at (0,0) and direction is always right.
Commands
+
: Increment A.=
: Increment B.-
: Decrement A._
: Decrement B.!
: Long jump, decreases current line number by A and column number by B. If line number is below 0, it becomes 0, the same for column number.A
(optional): Prints value in A (either as number or character).B
(optional): Prints value in B (either as number or character)..
: Halts.- Other characters: NOP.
Examples
Infinite loop
=!
XKCD Random Number
When command A
prints as character:
++++++++++++++++++++++++++++++++++++++++++++++++++++A.
When command A
prints as number:
++++A.