Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@richashworth
Last active September 19, 2015 11:19
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 richashworth/303f865accafb102bd4d to your computer and use it in GitHub Desktop.
Save richashworth/303f865accafb102bd4d to your computer and use it in GitHub Desktop.
LSUG Dojo September 2015
package lsug
/**
* Created by rich on 17/09/15.
*/
class LCDDigit(val firstRow: String, val secondRow: String, val thirdRow: String) {}
object zero extends LCDDigit(
firstRow = "._.",
secondRow = "|.|",
thirdRow = "|_|"
)
object one extends LCDDigit(
firstRow = "...",
secondRow = "..|",
thirdRow = "..|"
)
object two extends LCDDigit(
firstRow = "._.",
secondRow = "._|",
thirdRow = "|_."
)
object three extends LCDDigit(
firstRow = "._.",
secondRow = "._|",
thirdRow = "._|"
)
object four extends LCDDigit(
firstRow = "...",
secondRow = "|_|",
thirdRow = "..|"
)
object five extends LCDDigit(
firstRow = "._.",
secondRow = "|_.",
thirdRow = "._|"
)
object six extends LCDDigit(
firstRow = "._.",
secondRow = "|_.",
thirdRow = "|_|"
)
object seven extends LCDDigit(
firstRow = "._.",
secondRow = "..|",
thirdRow = "..|"
)
object eight extends LCDDigit(
firstRow = "._.",
secondRow = "|_|",
thirdRow = "|_|"
)
object nine extends LCDDigit(
firstRow = "._.",
secondRow = "|_|",
thirdRow = "..|"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment