Snake nextWorld and step

Log in om je oplossingen te testen.
import Helper --right :: Direction --collides :: Snake -> Coordinate -> Bool --width :: Int --height :: Int --inBox :: Coordinate -> Bool --extend :: Snake -> Direction -> Snake --move :: Snake -> Direction -> Snake --nextApple :: Apple -> Apple --collidesApple :: Snake -> Apple -> Apple --initialPosition :: Snake nextWorld :: World -> World nextWorld = undefined step :: Float -> World -> World step = undefined
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.