Somewhere in the early December, I created a MATLAB code for classic snake game. It is relatively easy and simple so it only took a couple hours to finish the code. However, I decided not to post it yet in my MATLAB Fun Toolbox page because I want to do a little improvement for the graphics. Yup, instead of just using a single color pixelated snake, I wanted my snake to have texture and even have a visualization of its head and tail. Unfortunately, after almost two weeks, now DEcember almost ends and I haven’t made any improvement for the codes (Blame me, it’s holiday season and I want to be lazy). So, to avoid me forgeting to post this MATLAB Snake code, I decided to put it now at my MATLAB Fun Toolbox page and update it later.
So, here is several screenshot of my MATLAB snake code (The graphic is a disaster and I’m gonna improve it later):
I’ve also uploaded a (bad quality) video of my MATLAB snake in youtube. Here is the video if you want to see the animation that I made for this code:
As usual, this code is free for you all and can be downloaded from my MATLAB Fun Toolbox. Please feel free to download it and give any comments or critics. FYI, for the next code in my MATLAB Fun Toolbox, I’m gonna write MATLAB Congklak code. It is a traditional bean-counting game from my country. However, I think it is gonna take awhile to finish the code because the algorithm is quite complex for the AI and I want to incorporate a pretty nice animation to make the game look nice. Please look forward to it:D…
Update for this post: MATLAB Othello and MATLAB Snake – A Better Video Demo