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
Learning Path
Learn stack operations
Understand pointer movement
Study basic 2D program layouts
Experiment with self-modifying examples
Join code-golf challenges
Skill Improvement Plan
Week 1: Basic instructions + stack practice
Week 2: Direction control and branching
Week 3: String mode + I/O mastery
Week 4: Self-modification via p/g
Week 5: Code-golf optimization
Interview Questions
What is Befunge and what makes it unique?
Explain the 2D execution model.
How does Befunge support self-modifying code?
Compare Befunge with linear esolangs.
What are typical use cases of Befunge?
Cheat Sheet
>: Move right
<: Move left
^: Move up
v: Move down
p/g: Modify/read grid cell
Books
Esoteric Programming Languages Handbook
Befunge and 2D Code Flow
Creative Coding with Esolangs
Code-Golf Strategies
Unconventional Programming Models
Tutorials
Befunge basics and stack operations
2D flow control
Self-modifying code with p and g
Code-golf optimization
Pointer direction strategies
Official Docs
https://esolangs.org/wiki/Befunge
https://github.com/catseye/Befunge-93
Community Links
Esolangs.org Befunge page
Reddit r/esolangs
GitHub Funge interpreters
Online interactive editors
Code-golf puzzle forums
Community Support
Esolangs.org Befunge page
Reddit r/esolangs
GitHub interpreter repos
Code-golf communities
Programming puzzle forums
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.