Learn Befunge - 10 Code Examples & CST Typing Practice Test
Befunge is a two-dimensional esoteric programming language where code flows across a grid in multiple directions, allowing self-modifying behavior and unusual program structures.
Learn BEFUNGE with Real Code Examples
Updated Nov 25, 2025
Code Sample Descriptions
Hello World in Befunge
>25*"!dlroW ,olleH":v
v:,_@
> ^
A classic 'Hello, World!' in Befunge demonstrating 2D control flow.
Befunge Subtract Two Numbers
8 3 - .
Subtracts second number from first and prints it.
Befunge Clear Stack Example
9 8 7 6 5 4 3 2 1
$ $ $ $ $ $ $ $ @
Clears the stack and halts execution.
Befunge Hello Befunge
>25*"!egnufeB ,olleH":v
v:,_@
> ^
Prints 'Hello Befunge' demonstrating 2D control flow.
Frequently Asked Questions about Befunge
What is Befunge?
Befunge is a two-dimensional esoteric programming language where code flows across a grid in multiple directions, allowing self-modifying behavior and unusual program structures.
What are the primary use cases for Befunge?
Code-golf challenges using 2D logic. Educational demonstrations of non-linear control flow. Studying self-modifying grid-based programs. Obfuscation and creative puzzle programs. Esoteric language experimentation
What are the strengths of Befunge?
Visually interesting 2D code layout. Great for puzzles and creativity. Self-modifying code built-in. Compact, expressive programs. Vibrant esolang community support
What are the limitations of Befunge?
Not suitable for large applications. Hard to debug due to non-linear flow. Limited standard libraries. Hard for beginners to understand. Optimizing compilers struggle with its design
How can I practice Befunge typing speed?
CodeSpeedTest offers 10+ real Befunge code examples for typing practice. You can measure your WPM, track accuracy, and improve your coding speed with guided exercises.