Problem 90. Connect Four Win Checker
38.91% Correct | 61.09% Incorrect
Last Solution submitted on Mar 31, 2023
Dennis J on 12 Jul 2013
Can someone please tell me whats going on?!
Tim on 15 Jul 2013
The reshape function creates a matrix with the vector [1 3 9 27] placed vertically, horizontally, and diagonally; the conv2 function does sort of a dot product of these with all sets of four elements in the test matrix; if [1 1 1 1] or [2 2 2 2] appears, the result will be 40 or 80, respectively.
Piotr Balik on 7 Sep 2021
Impressive code compression
Ned Gulley on 20 Jan 2015
This code is referenced in the following blog post: http://blogs.mathworks.com/community/2015/01/19/robot-game-playing-in-matlab-part-2/
Problem Recent Solvers955
Split a string into chunks of specified length
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!