Skip to content

Instantly share code, notes, and snippets.

@sebnozzi
Created November 7, 2013 15:04
Show Gist options
  • Save sebnozzi/7356072 to your computer and use it in GitHub Desktop.
Save sebnozzi/7356072 to your computer and use it in GitHub Desktop.
Frames for a progressing Hangman game. In case we need this for a Dojo.
import scala.collection.mutable.Buffer
val frames = Buffer[String]()
frames += """
> _______
> |/ |
> |
> |
> |
> |
> |
> jgs_|___""".stripMargin('>')
frames += """
> _______
> |/ |
> | (_)
> |
> |
> |
> |
> jgs_|___""".stripMargin('>')
frames += """
> _______
> |/ |
> | (_)
> | |
> | |
> |
> |
> jgs_|___""".stripMargin('>')
frames += """
> _______
> |/ |
> | (_)
> | \|
> | |
> |
> |
> jgs_|___""".stripMargin('>')
frames += """
> _______
> |/ |
> | (_)
> | \|/
> | |
> |
> |
> jgs_|___""".stripMargin('>')
frames += """
> _______
> |/ |
> | (_)
> | \|/
> | |
> | /
> |
> jgs_|___""".stripMargin('>')
frames += """
> _______
> |/ |
> | (_)
> | \|/
> | |
> | / \
> |
> jgs_|___""".stripMargin('>')
// END
frames.foreach( f => println(f) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment