Sha256: cd08a16bfd288f133278f088100f84dedfc37256def62d2544d6a934fc6df8c4
Contents?: true
Size: 819 Bytes
Versions: 66
Compression:
Stored size: 819 Bytes
Contents
module RobotSimulator exposing ( Bearing(..) , Robot , advance , defaultRobot , simulate , turnLeft , turnRight ) type Bearing = North | East | South | West type alias Robot = { bearing : Bearing , coordinates : { x : Int, y : Int } } defaultRobot : Robot defaultRobot = Debug.crash "Please implement this function" turnRight : Robot -> Robot turnRight robot = Debug.crash "Please implement this function" turnLeft : Robot -> Robot turnLeft robot = Debug.crash "Please implement this function" advance : Robot -> Robot advance robot = Debug.crash "Please implement this function" simulate : String -> Robot -> Robot simulate directions robot = Debug.crash "Please implement this function"
Version data entries
66 entries across 66 versions & 1 rubygems