Question: write a code using these function inputs and outputs that determine if a column is full or not function columnFull = isColumnFull ( currentTokens ,

write a code using these function inputs and outputs that determine if a column is full or not
function columnFull = isColumnFull(currentTokens, colNum)
% determines if a column is full of tokens
% INPUTS:
% currentTokens: 6 by 7 matrix of integers that are 1(yellow)
%2(red token) and 3(black token)
% colNum: an integer between 1 and 7. You can assume that the
% game will NOT call this funciton with integer outside this range
% RETURNS:
% columnFull: logical variable that represents if the column is full
% or not - true if the column is full and false if the
% column can have more tokens dropped into it
end

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 Programming Questions!