Skip to content

Commit

Permalink
Add FizzBuzz example and remove C word
Browse files Browse the repository at this point in the history
  • Loading branch information
Property404 committed Oct 21, 2017
1 parent 73a78ad commit da418ae
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/beer.fet
@@ -1,6 +1,6 @@
(Bottles of beer program)

lick Belinda's cunt one hundred times
lick Belinda's nips one hundred times
lick Gloria's feet

until Belinda is submissive to her
Expand Down
53 changes: 53 additions & 0 deletions examples/fizzbuzz.fet
@@ -0,0 +1,53 @@
(
Classic FizzBuzz program in Fetlang with characters from Buffy the Vampire
Slayer

Rules:
For numbers 1 to 100:
print "Fizz Buzz" if the number is divisible by 3 and 5
print "Fizz" if the number is divisible by 3 but not 5
print "Buzz" if the number is divisible by 5 but not 3
Otherwise, just print the number
)

(Our limit)
Lick Spike's belly button one hundred times

(This is our counter var...setting to one)
lick Buffy's ears

(We need to have a zero (and since Xander's kind of a loser...))
Flog Xander

Lick Giles five times
Lick Angel three times

(main loop)
until Spike is submissive to Buffy
(Set willow to Buffy%5)
Have Xander worship Willow
Have Buffy lick Willow's nose
Have Giles tickle Willow (This seems a bit out of character...We might need to refactor)

if Willow is Xander's submissive
(Set willow to Buffy%3)
Have Xander worship Willow
Have Buffy lick Willow's nose
Have Angel tickle Willow

if Willow is Xander's submissive, still
make slave scream "Fizz Buzz"
otherwise
make slave scream "Buzz"
otherwise
(Set willow to Buffy%3)
Have Xander worship Willow
Have Buffy lick Willow's nose
Have Angel tickle Willow

if Willow is Xander's submissive, still
make slave scream "Fizz"
otherwise
make slave scream Buffy's name

Lick Buffy's throat

0 comments on commit da418ae

Please sign in to comment.