Sha256: 3491ca15b1d7aeb080777a6ac65f0ee4cdab3753daa2577da6deabb87bcd6ac3

Contents?: true

Size: 928 Bytes

Versions: 271

Compression:

Stored size: 928 Bytes

Contents

module Robot
    ( Bearing(East,North,South,West)
    , bearing
    , coordinates
    , mkRobot
    , simulate
    , turnLeft
    , turnRight
    ) where

data Bearing = North
             | East
             | South
             | West
             deriving (Eq, Show)

data Robot = Dummy

bearing :: Robot -> Bearing
bearing robot = error "You need to implement this function."

coordinates :: Robot -> (Integer, Integer)
coordinates robot = error "You need to implement this function."

mkRobot :: Bearing -> (Integer, Integer) -> Robot
mkRobot direction coordinates = error "You need to implement this function."

simulate :: Robot -> String -> Robot
simulate robot instructions = error "You need to implement this function."

turnLeft :: Bearing -> Bearing
turnLeft direction = error "You need to implement this function."

turnRight :: Bearing -> Bearing
turnRight direction = error "You need to implement this function."

Version data entries

271 entries across 271 versions & 1 rubygems

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