Question: function Start = connect4game() figure('Units','normalized','Position',[.2 .2 .6 .6], 'Name','Connect Four','Color','w'); axes('Units','normalized','Position',[.1 .1 .8 .8],'Color','b','LineWidth',1,'Box','on'); set(gca, 'XTick',[],'YTick',[],'XLim',[0,160],'YLim',[0,140]); hold on; for row = 1:6 for col =

function Start = connect4game() figure('Units','normalized','Position',[.2 .2 .6 .6], 'Name','Connect Four','Color','w'); axes('Units','normalized','Position',[.1 .1 .8 .8],'Color','b','LineWidth',1,'Box','on'); set(gca, 'XTick',[],'YTick',[],'XLim',[0,160],'YLim',[0,140]); hold on; for row = 1:6 for col = 1:7 board(row,col) = plot(col*20,row*20, 'wo','MarkerSize',35,'LineWidth',1,'MarkerFaceColor',[1 1 1]','MarkerEdgeColor', [0 0 0]); end end

Could someone help me write a connect 4 game (human vs computer) that works with the above design?

It doesn't have to be anything special it just has to work for now.

The programming language that I'm using is MatLab.

Thanks!!!

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!