Editor - C:\Users\shane\Documents\MATLAB\Project\tic Tac Toe.m ticTacToe.m playerOne.mx playerOneWin.mx playerTwo.mx pla
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Editor - C:\Users\shane\Documents\MATLAB\Project\tic Tac Toe.m ticTacToe.m playerOne.mx playerOneWin.mx playerTwo.mx pla
Editor - C:\Users\shane\Documents\MATLAB\Project\tic Tac Toe.m ticTacToe.m playerOne.mx playerOneWin.mx playerTwo.mx playerTwoWin.m x + 1 % Tic-Tac-Toe Game 2 tictactoeGrid = ['1' 2' '3'; '4' 5'6; 7' '8' 9']; 3 playOneWin = false; while (playOneWin N= true) ticTacToeGrid = playerOne(ticTacToeGrid); disp(ticTacToeGrid); playerOneWin(ticTacToeGrid); playerTwowin(tictactoeGrid); ticTacToeGrid = playerTwo(ticTacToeGrid); disp(ticTacToeGrid); playerOneWin(ticTacToeGrid); 12 playerTwoWin(tictactoeGrid); 13 end disp("Player One Won!"); 6 Бороо оо ч ол еш мн 8 9 10 11 14
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!