Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

% Function Name: bingoChecker % Inputs (2): - (logical) An NxN array that repres

ID: 3645147 • Letter: #

Question

% Function Name: bingoChecker
% Inputs (2): - (logical) An NxN array that represents a Bingo board
% - (char) A list of moves separated by commas
% Outputs (2): - (logical) The updated bingo board
% - (logical) A logical indicating whether or not you got
% bingo
%
% Function Description:
% Write a function called "bingoChecker" that takes in a logical array
% representing a bingo board and a list of moves, and then returns the
% updated board and a logical flag indicating whether or not you got
% bingo.
%
% The board will be a square array of logical values (true/false). A
% logical true means that there is a token on that spot while false means
% that it is vacant.
%
% The second input is a string containing a list of moves that will be
% used to update the bingo board. Each move will be formatted with a
% letter representing the corresponding column in a typical Bingo board,
% where each column represents one letter in the word 'BINGO', and a
% row number from 1 to 5.
%
% To have Bingo, you have 5 spots occupied in a row horizontally,
% vertically, or diagonally.
%
% Given the following example of a 5x5 Bingo board:
%
% B I N G O
% 1 T F F F F
% 2 T F F T F
% 3 T F T F F
% 4 T F F F F
% 5 F F F F F
%
% And a list of moves consisting of 'B5,O2,O4'. The updated bingo board
% would be like the one below, and we would have Bingo.
%
% B I N G O
% 1 T F F F F
% 2 T F F T T
% 3 T F T F F
% 4 T F F F T
% 5 T F F F F
%
% Notes:
% - The column headers are guaranteed to be capital letters spelling
% out "BINGO".
% - If the moves are an empty string, then just return the original
% Bingo board.
%
% Test Cases:
% board1 = [true , false, false, false, false;...
% true , false, false, true , false;...
% true , false, true , false, false;...
% true , false, false, false, false;...
% false, false, false, false, false];
% moves1 = 'B5,O2,O4';
%
% [update1, bingoResult1] = bingoChecker(board1, moves1);
% update1 =>
% [true false false false false
% true false false true true
% true false true false false
% true false false false true
% true false false false false]
% bingoResult1 =>
% true
%
% moves2 = 'I2,I1,G4,O5';
%
% [update2, bingoResult2] = bingoChecker(board1, moves2);
% update2 =>
% [true true false false false
% true true false true false
% true false true false false
% true false false true false
% false false false false true ]
% bingoResult2 =>
% true
%
% moves3 = '';
%
% [update3, bingoResult3] = bingoChecker(board1, moves3);
% update3 =>
% [true false false false false
% true false false true false
% true false true false false
% true false false false false
% false false false false false]
% bingoResult3 =>
% false
%

Explanation / Answer

Just state the exact question you want to ask, to get quick proper replies to your question instead of giving your half code, just ask to write the entire script