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