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

Version Path
trackler-2.2.1.180 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.179 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.178 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.177 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.176 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.175 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.174 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.173 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.172 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.171 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.170 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.169 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.167 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.166 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.165 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.164 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.163 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.162 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.161 tracks/elm/exercises/robot-simulator/RobotSimulator.elm
trackler-2.2.1.160 tracks/elm/exercises/robot-simulator/RobotSimulator.elm