Previous Problem https://www.mathworks.com/matlabcentral/cody/problems/45354-connect-four-01 https://www.mathworks.com/matlabcentral/cody/problems/45356-connect-four-02
In addition to previous problem
In this case, there can be empty places on the board represented by 0.
Also no of consecutive elements can be more than 4.
Solution Stats
Problem Comments
5 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers5
Suggested Problems
-
Find the sum of all the numbers of the input vector
53941 Solvers
-
Is this date a palindrome?emordnilap a etad siht sI
90 Solvers
-
Calculate the area of a triangle between three points
3419 Solvers
-
Generate N equally spaced intervals between -L and L
943 Solvers
-
Penny flipping - calculate winning probability (easy)
195 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I get the different answer about test 4
can u be more specific about what answer r u getting?
1-10
2-10
that's the answer my program is giving me.
@Asif Newaz, in the test4, I get
1-8
2-9
Maybe I got it wrong, I will try again
@Asif Newaz, ok , the test is right, I got it wrong
I likely had the same confusion as Binbin: [1 1 1 1 1] counts as one winning string for Player 1 (not two), whereas [1 1 1 1 1 1 1 1 1] counts as two (not one or six).