DEV Community

Discussion on: Build a Snake Game in functional JavaScript - Part 0

Collapse
 
patferraggi profile image
Patricio Ferraggi

Hey Max, I am glad you liked it, hopefully I can get the next one done in the upcoming week.

Well, most of the functions I used like pipe, thunkify, map and repeat they don't come by default with JavaScript, in order not implement them myself (as it is not the goal of this project) I used a library called Ramda.js, you can check the documentation here ramdajs.com/docs/. So in order to use this library inside node.js, I first need to import it, otherwise, methods are no visible. If this would be done directly in a browser I could have used the 'import' syntax or just put a reference for the ramda.js file inside the html.