%Script to generate single dice roll transition matrix on 40x40 game board
%with "wrap around".
P40=spdiags(ones(40,6)/6,1:6,40,46);
P40(:,1:6)=P40(:,1:6)+P40(:,41:46);
P40=full(P40(:,1:40));