Skip to content

Instantly share code, notes, and snippets.

View andydonzelli's full-sized avatar

Andy Donzelli andydonzelli

View GitHub Profile
@andydonzelli
andydonzelli / snark.m
Created August 27, 2015 14:17
Snake Game for MATLAB
%snark game;
function snark ()
%Size of the 'playing field'.
max_x = 20;
max_y = 20;
grid = zeros(max_x,max_y);
%Starting position.
x = 5;