Cody

# Problem 44812. Draw Dominos

Solution 2628730

Submitted on 29 Jun 2020
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   Fail
dp = draw_dominos([0,0]); da = [' | '; ' | '; ' | ';]; assert(strcmp(dp,da))

a = 3×7 char array ' ' ' ' ' ' b = 3×7 char array ' ' ' ' ' '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test1 (line 1) dp = draw_dominos([0,0]);

2   Fail
dp = draw_dominos([1,2]); da = [' | o '; ' o | '; ' | o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' ' ' o ' ' ' b = 3×7 char array ' o ' ' ' ' o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test2 (line 1) dp = draw_dominos([1,2]);

3   Fail
dp = draw_dominos([3,4]); da = [' o | o o '; ' o | '; ' o | o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o ' ' o ' ' o ' b = 3×7 char array ' o o ' ' ' ' o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test3 (line 1) dp = draw_dominos([3,4]);

4   Fail
dp = draw_dominos([5,6]); da = [' o o | o o o '; ' o | '; ' o o | o o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o ' ' o ' ' o o ' b = 3×7 char array ' o o o ' ' ' ' o o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test4 (line 1) dp = draw_dominos([5,6]);

5   Fail
dp = draw_dominos([7,8]); da = [' o o o | o o o '; ' o | o o '; ' o o o | o o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o o ' ' o ' ' o o o ' b = 3×7 char array ' o o o ' ' o o ' ' o o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test5 (line 1) dp = draw_dominos([7,8]);

6   Fail
dp = draw_dominos([9,9]); da = [' o o o | o o o '; ' o o o | o o o '; ' o o o | o o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o o ' ' o o o ' ' o o o ' b = 3×7 char array ' o o o ' ' o o o ' ' o o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test6 (line 1) dp = draw_dominos([9,9]);

7   Fail
dp = draw_dominos([3,7]); da = [' o | o o o '; ' o | o '; ' o | o o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o ' ' o ' ' o ' b = 3×7 char array ' o o o ' ' o ' ' o o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test7 (line 1) dp = draw_dominos([3,7]);

8   Fail
dp = draw_dominos([7,3]); da = [' o o o | o '; ' o | o '; ' o o o | o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o o ' ' o ' ' o o o ' b = 3×7 char array ' o ' ' o ' ' o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test8 (line 1) dp = draw_dominos([7,3]);

9   Fail
dp = draw_dominos([5,5]); da = [' o o | o o '; ' o | o '; ' o o | o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o ' ' o ' ' o o ' b = 3×7 char array ' o o ' ' o ' ' o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test9 (line 1) dp = draw_dominos([5,5]);

10   Fail
dp = draw_dominos([1,8]); da = [' | o o o '; ' o | o o '; ' | o o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' ' ' o ' ' ' b = 3×7 char array ' o o o ' ' o o ' ' o o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test10 (line 1) dp = draw_dominos([1,8]);

11   Fail
dp = draw_dominos([6,4]); da = [' o o o | o o '; ' | '; ' o o o | o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o o ' ' ' ' o o o ' b = 3×7 char array ' o o ' ' ' ' o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test11 (line 1) dp = draw_dominos([6,4]);

12   Fail
dp = draw_dominos([4,2]); da = [' o o | o '; ' | '; ' o o | o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o ' ' ' ' o o ' b = 3×7 char array ' o ' ' ' ' o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test12 (line 1) dp = draw_dominos([4,2]);

13   Fail
dp = draw_dominos([2,5]); da = [' o | o o '; ' | o '; ' o | o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o ' ' ' ' o ' b = 3×7 char array ' o o ' ' o ' ' o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test13 (line 1) dp = draw_dominos([2,5]);

14   Fail
dp = draw_dominos([9,0]); da = [' o o o | '; ' o o o | '; ' o o o | ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o o ' ' o o o ' ' o o o ' b = 3×7 char array ' ' ' ' ' '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test14 (line 1) dp = draw_dominos([9,0]);

15   Fail
dp = draw_dominos([8,7]); da = [' o o o | o o o '; ' o o | o '; ' o o o | o o o ';]; assert(strcmp(dp,da))

a = 3×7 char array ' o o o ' ' o o ' ' o o o ' b = 3×7 char array ' o o o ' ' o ' ' o o o '

Error using join (line 57) Not enough input arguments. Error in draw_dominos (line 4) d=[a join b] Error in Test15 (line 1) dp = draw_dominos([8,7]);

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!