This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
n = 3;
y_correct = 252;
assert(isequal(xoxo(n),y_correct));
|
2 | Fail |
% sneaky... With n=1 this is a single player game though the outcome is 2 as you can still choose 'x' or 'o' to play.
n = 1;
y_correct = 2;
assert(isequal(xoxo(n),y_correct));
|
9828 Solvers
The Hitchhiker's Guide to MATLAB
2874 Solvers
Calculate the Hamming distance between two strings
178 Solvers
282 Solvers
445 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!