Cody

Problem 45366. Connect Four - 04

Previous Problem

https://www.mathworks.com/matlabcentral/cody/problems/45355-connect-four-03

In addition to the previous problem, in this case

 a 2 by 2 block will also be considered as a winning move.

For example,

x=[ 1 1 2 1 2
    1 1 2 2 1
    2 1 2 2 1
    2 2 1 1 2]

here, there is a 2-by-2 block of 1 and 2.

Solution Stats

80.0% Correct | 20.0% Incorrect
Last Solution submitted on Mar 26, 2020