Snake AI game in JavaScript, my very first approach to AI. Feel free to give me your feedback!

  • by

Hello guys, I have developed using mainly JavaScript a Snake game and I’ve implemented AI (I think).

I would appreaciate if you can give me your feedback to improve the AI algorithm (or the UI). My main struggle is that sometimes the snake gets in a spiral itself when there is a lot of space available, I have an idea on how to avoid it but it’s not that good.

Live demo

GitHub repo

submitted by /u/andresfigueira
[link] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *