Play whenever you're bored.
Updated 28 Mar 2003

No License

Everybody is familiar with this game :
navigate the snake to capture a prey . Afer such a meal another prey appears in random location , and your snake becomes longer . If the snake collides with a wall or with his tail , the game is over .

Unzip the file , save the two files "snake.m" and "engine.m" on the MATLAB path , type "snake" in the com.prompt and have a fun !

Cite As

Valery Garmider (2024). snake (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Video games in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes