function drunkard = DrunkardsWalk( blocks, where, steps )
%DRUNKARDSWALK makes an alley and simulates a drunk walking on it

walk_matrix=zeros(1+blocks);

walk_matrix(1,1)=1;
walk_matrix(1+blocks,1+blocks)=1;

for i=2:blocks
    walk_matrix(i,i-1)=1/2;
    walk_matrix(i,i+1)=1/2;
end

drunkard=zeros(1,blocks+1);
drunkard(where)=1;

drunkard=drunkard*walk_matrix^steps;





end

