• Wednesday , 20 March 2019

JavaScript Snake Game Tutorial Using Functional Programming

Code Canyon



Build a Snake Game in JavaScript using Functional Programming concepts. No libraries are used in this JavaScript tutorial.

💻 Source code: https://github.com/chrokh/snake

Created by Christopher Okhravi.
🔗Check out his YouTube channel: https://www.youtube.com/channel/UCbF-4yQQAWw-UnuCd2Azfzg

Learn to code for free and get a developer job: https://www.freecodecamp.com

Read hundreds of articles on programming: https://medium.freecodecamp.com

And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp

Original source

3d Ocean

Related Posts

29 Comments

  1. freeCodeCamp.org
    February 10, 2019 at 02:43

    Want to learn to code snake in Python? https://youtu.be/CD4qAhfFuLo

  2. Deyl Raytop
    February 10, 2019 at 02:43

    This guy run a great YouTube channel. He is able to elucidate difficult stuff.

  3. Mahmoud Hammmad
    February 10, 2019 at 02:43

    You are a great speaker 👍

  4. drewski west
    February 10, 2019 at 02:43

    this looks awesome and all but in parts you speak entirely too fast and it becomes jumbled
    sadly i don't see your folder set up ..
    just how you have it presented in node terminal and already-written code

    would help tremendously to do this project from the beginning T_T not when its finished

  5. dejo095
    February 10, 2019 at 02:43

    Gotta love this channel 😍

  6. TK
    February 10, 2019 at 02:43

    It's not a game but I implemented a simple application using FP concepts with JavaScript. It's a pomodoro timer
    PomoLambda: https://github.com/leandrotk/pomo-lambda

  7. Karthik N
    February 10, 2019 at 02:43

    https://github.com/KarthikNedunchezhiyan/MultiLevel-Snake-Game share your suggestions, i have made snake game using js

  8. Sam Dave Pollard
    February 10, 2019 at 02:43

    I'm interested in learning more about functional programming.
    Are there any performance implications of using functional programming for games?

  9. Glen H
    February 10, 2019 at 02:43

    Any reason for not using webpack? That will handle your import export and then use Babel to compile your code for cross browser support

  10. awaterplease
    February 10, 2019 at 02:43

    Could someone please explain me line 'const step = t1 => t2 => {…'
    are t1 and t2 both arguments of step fucntion and if they were, why wasnt it written line 'const step = (t1, t2) => {…'
    Thanks.

  11. adam libarov
    February 10, 2019 at 02:43

    I think I know javascript, sorry, my bad 🙂

  12. BooshButters
    February 10, 2019 at 02:43

    "The interwebs."
    He said "The Interwebs."
    9/10 video, needs more snakes

  13. Deshmukh Ganesh
    February 10, 2019 at 02:43

    thanks for this video? could you please tell me how to show grid lines in snake's background, so to predict in which row it is.
    in short, To show rows and columns cells/squares.

  14. Marlon López
    February 10, 2019 at 02:43

    This exercise was amazing, i learned functional programming basics while watching!

  15. Joaquin Senosiain
    February 10, 2019 at 02:43

    You could do a deep equality check of two objects using the JSON.stringify function in your example. JSON.stringify(obj1) === JSON.stringify(obj2).

  16. Роман Тищенко
    February 10, 2019 at 02:43

    awesome! watched several snake video on youtube, they all pretty shitty in comparison to this one. good job.

  17. Jonathan Cousins
    February 10, 2019 at 02:43

    I'm a little confused. JS does have currying, and partial application.

  18. Denisas Dionyzas Jeršovas
    February 10, 2019 at 02:43

    Hi there 🙂 good video explaining everything 🙂 Just wondering maybe any food respawn update ? 🙂 now food sometimes respaws on the snake body, tryed to accomplish it but sadly could not …

  19. Timothy Johnson
    February 10, 2019 at 02:43

    I really liked this, useful to see the functional programming concepts integrated with 2 different UIs.

    I would love to see him again do an application with backend persistence.

  20. engineer mahbub
    February 10, 2019 at 02:43

    boss level lecture
    better than my versity teacher

  21. Chris Talke
    February 10, 2019 at 02:43

    Mr Bean knowns javascript

  22. Sylwester Zientara
    February 10, 2019 at 02:43

    super explanation of basic snake game

  23. Umar Nasir
    February 10, 2019 at 02:43

    Amazing video for someone who is new to game logic. Thank you, Chris!

  24. andrew kim
    February 10, 2019 at 02:43

    this guy was amazing, more!

  25. Asan Badhurudeen
    February 10, 2019 at 02:43

    haha…go for game engine like ue4,godot,unity still coding

  26. Nicholas Zenos
    February 10, 2019 at 02:43

    Just curious as to what level of knowledge i would need in javascript to be able to do something like this on my own. Like beginner/ intermediate/advanced

  27. Surya Das
    February 10, 2019 at 02:43

    You are a really great speaker! Have you spoken at any conferences?

  28. mohamed abdullahi
    February 10, 2019 at 02:43

    great tutorial. thanks for the upload.

Leave A Comment

You must be logged in to post a comment.