Make the snake grow longer by directing it to the food.
Extra bonus points are given from hearts, eat them as fast as possible as amount of bonus points decreases with time.
Higher level gives more points for the food but will also make it tougher to steer a long snake as speed increaces.
Five different mazes as well as play w/o maze are possible.
Steer snake using arrow keys. Pause game with 'p' or space.
snake % Start Main Snake Interface
Per-Anders Ekstrom (2021). Snake (the classic Nokia game) (https://www.mathworks.com/matlabcentral/fileexchange/14098-snake-the-classic-nokia-game), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!