Question: Need the cdoe for this in matlab Connect Four. The rules for the game are simple: using a 6 x 7 game board, get 4

Need the cdoe for this in matlab
Connect Four. The rules for the game are simple: using a 6

Connect Four. The rules for the game are simple: using a 6 x 7 game board, get 4 of your pieces in a row (in any direction!) before your opponent does. The final project, must be submitted using fimctions; please, follow the instructions carefully. Part 1: Find Pieces Appro:rimate lines of code: 30 (does not include comments, white. space) Given various images of the game, your code must determine where the pieces are currently located; a perfect image thresholding problem! The imagens you have to process will always follow rules: The physical game board is greyish with blue pieces for Player-I and yellow pieces for Player-2 The board will alveays be fully visible and oriented upwards but may be anywhere in the image of any size. The size of the board will remain constant though. Find Pieces hlnction Details Summary: Given the name of the image, find where the blue and yellow pieces are located Filename: FindPieces.m Inputs: filename Outputs: layout ('2D matrix) Syntax: [layout] = FindPieces(filename); The fimction is complete when it can take any of the sample images provided, and produce the correct board layout. Note that a 0 is an empty space, 1 is a blue piece and 2 is a yellow piece.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!