Cody

# Problem 3690. OXO counting

Solution 1719988

Submitted on 3 Feb 2019
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
board = 'OXO'; y_correct = 1; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
board = ''; y_correct = 0; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
board = ' '; y_correct = 0; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
board = ' X '; y_correct = 0; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

5   Fail
board = 'O O'; y_correct = 0; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

6   Fail
board = 'O O OXO X'; y_correct = 1; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

7   Fail
board = 'OOX'; y_correct = 0; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

8   Fail
board = 'OOXOX'; y_correct = 1; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

9   Fail
board = 'OOX OX'; y_correct = 0; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

10   Fail
board = 'OOXXO'; y_correct = 0; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

11   Fail
board = 'OOXOOOOXXOXOX'; y_correct = 2; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

12   Fail
board = ['OOO';'OXO';'OXO']; y_correct = 4; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

13   Fail
board = ['OOO';'OXO';'OOO']; y_correct = 4; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

14   Fail
board = ['OXX';'XXX';'XOO']; y_correct = 1; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

15   Fail
board = ['OOO';'X O';'OXO']; y_correct = 2; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

16   Fail
board = [' ';' ';' ';' ']; y_correct = 0; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

17   Fail
board = ['O OO';'O XO';'OOX ']; y_correct = 1; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

18   Fail
board = ['OXXOXO';' OXO X';'XOXOXO']; y_correct = 6; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

19   Fail
board = ['OXOXOXO';'OXOXO X';'XOOOXOX']; y_correct = 8; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

20   Fail
board = 'OXO'.'; y_correct = 1; assert(isequal(count_OXO(board),y_correct))

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

21   Fail
% Keep in mind that Test Suite may be extended, so try to write general solution. % If you find any bugs, please report it to me. Thanks! % Have fun.

Error in solution Line: 2 Column: 87 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.