Created
June 2, 2016 06:24
-
-
Save anonymous/2aa14fd93f68e49494a830501c699ff0 to your computer and use it in GitHub Desktop.
the description for this gist
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
object Logo { | |
sealed trait Instruction[A] | |
case class Forward(position: Position, length: Int) extends Instruction[Position] | |
case class Backward(position: Position, length: Int) extends Instruction[Position] | |
case class RotateLeft(position: Position, degree: Degree) extends Instruction[Position] | |
case class RotateRight(position: Position, degree: Degree) extends Instruction[Position] | |
case class ShowPosition(position: Position) extends Instruction[Unit] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment