Question: Please update this script to make it player vs computer using matlab. xh1 = [0,3];xh2 = [0,3];xv1 = [1,1];xv2 = [2,2];yh1 = [1,1];yh2 = [2,2];yv1
Please update this script to make it player vs computer using matlab.
xh1 = [0,3];xh2 = [0,3];xv1 = [1,1];xv2 = [2,2];yh1 = [1,1];yh2 = [2,2];yv1 = [0,3];yv2 = [0,3];clfplot(xh1,yh1,'b',xh2,yh2,'b',xv1,yv1,'b',xv2,yv2,'b'),...axis off, axis square,...title('Click in the desired location.')holdplay = 0;while play < 9play = play+1;[x,y] = ginput(1);text(0.5+floor(x),0.5+floor(y),'x',...'horizontalalignment','center','fontsize',20)endhold
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
