Skip to content

Instantly share code, notes, and snippets.

@Raagh
Created April 14, 2020 18:29
Show Gist options
  • Save Raagh/c31cd6507367b68d51f4afda2797d724 to your computer and use it in GitHub Desktop.
Save Raagh/c31cd6507367b68d51f4afda2797d724 to your computer and use it in GitHub Desktop.
Functional Snake Game - Part 2 - Step
const step = r.curry((cols, rows, state) =>
r.pipe(nextSnake(cols, rows), nextApple(cols, rows))(state)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment