Cody

Solution 472049

Submitted on 14 Jul 2014 by Abdullah Caliskan
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
%% t = [1 5 7 9]; north = 3; td = [' 7 ' ' 5 9' ' 1 ']; assert(isequal(rotate_tile(t, north),td))

a = 7 9 1 5 m = 7 d = 7 m = 9 f = 9 m = 5 ff = 5 9 m = 1 dd = 1 gg = 7 5 9 1

2   Pass
%% t = [27 8 5 46]; north = 4; td = [' 46 ' ' 5 27' ' 8 ']; assert(isequal(rotate_tile(t, north),td))

a = 46 27 8 5 m = 46 d = 46 m = 27 f = 27 m = 5 ff = 5 27 m = 8 dd = 8 gg = 46 5 27 8

3   Pass
%% t = [9 57 75 9]; north = 2; td = [' 57 ' ' 9 75' ' 9 ']; assert(isequal(rotate_tile(t, north),td))

a = 57 75 9 9 m = 57 d = 57 m = 75 f = 75 m = 9 ff = 9 75 m = 9 dd = 9 gg = 57 9 75 9