Created
December 22, 2012 19:37
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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