This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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; |