Befunge is an esoteric programming language with an interesting property: The pointer can move in any direction you specify. Up, down, sideways, and in a variant version, Trefunge, along the z-axis. It makes for some pretty cool and crazy looking code. For example, I made this simple calculator in it (it only does addition and subtraction right now)EDIT: Now with multiplication and division as well and the code looks like this:
v --A BEFUNGE CALCULATOR :3-- > v
& & >74+4*2-`| @
& & >&&*.^
Makes such interesting code, don't you think?
It looks pretty incomprehensible, but all it does is print out "CALCBEF", asks you for "+" or "-" and then performs the selected operation on two numbers of your choosing. It's pretty neat and I think all you programmers out there should give it a try.
As for interpreting your finished code, I suggest Yet Another Befunge93 Interpreter, as it has a neat java interface and an animation mode that runs through your code visually.
What I find really cool about this is that it's actually pretty similar to how the game Manufactoria works. It's just that the game is a little more graphical. In both cases program execution moves around a 2D grid and elements of that grid influence execution. One key difference is that Manufactoria operates off of a queue instead of a stack (and also only has 4 symbols that can be placed on the queue).
Rollback Post to RevisionRollBack
Never attribute to malice what can adequately be explained by incompetence.