Skip to content

Instantly share code, notes, and snippets.

@andrew8088
Created December 22, 2012 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrew8088/4360639 to your computer and use it in GitHub Desktop.
Save andrew8088/4360639 to your computer and use it in GitHub Desktop.
Having some fun with the Befunge programming language. This is a simple looping coin toss program.
> v
v,,,,,,,,,,,,,,,,,,,,"Welcome to Coin Toss"<
>52*, v
v"Type H or T to choose heads or tails:"<
>,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,v
v `*8*52~ <
v ? v
v_v ^ v_v
> v <
v <
> v
v ,,,,,,,,,"You won!"*25<
> ^
> v
^,,,,,,,,,,"You lost."*25<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment