Last active
September 19, 2015 11:19
-
-
Save richashworth/303f865accafb102bd4d to your computer and use it in GitHub Desktop.
LSUG Dojo September 2015
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
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