Talk:Brainfact

From Esolang
Jump to navigation Jump to search

If you put >'s, <'s, +'s or -'s in a row, the interpreter counts how many there are next to each other, calculates the factorial of that number, and runs the operation that number of times. So if you put zero >s in a row, they're gonna be interpreted as moving factorial zero cells to the right... and factorial zero is one... So every occurrence of the empty string means doing every operation once? In what order? ><+- is a no-op but <+>- certainly is not! --Koen (talk) 22:01, 11 August 2013 (UTC)

Oops! Updated the page so any string that isn't an operation is a no-op. Poolala (talk) 01:25, 13 August 2013 (UTC)

Just ><++><++ for brainf*** equivalence?

I figured out a way to replace ><+- to become brainf*** (is this cheating; this is my first post):

> → >+-
< → <+-
+ → +<>
- → -<>

But the factorial stuff would be a great shortcut! :D

++++><++++.

outputs a 0. (4! = 24, 24+24=48, ASCII 48 = 0)

EDIT: Looked at it again, noticed the [] was replaced by @. I am dumbfounded by the question of how to do this. (Isn't that the point? :D)

--(this comment by Mathboy601 at 22:05, 5 August 2015‎ UTC; please sign your comments with ~~~~)