Skip to content

Instantly share code, notes, and snippets.

@cohen990
Last active August 29, 2015 14:28
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 cohen990/446079585801424fc080 to your computer and use it in GitHub Desktop.
Save cohen990/446079585801424fc080 to your computer and use it in GitHub Desktop.
Kata:
Print out a scalable circle on the command line.
program takes a diameter as an input
input 1: output: o
input 2: output: ()
_
/ \
input 5: output: | |
\_/
___
/ \
input 7: output: | |
\___/
It's open to interpretation so long as it looks vaguely circley
Stretch goal:
Print out a scalable smiley face (only going to affect larger images)
____
/ \
/ o o \
input 10: output: | . . |
\ '....' /
\______/
Again, so long as it looks vaguely smiley then that's fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment