clc; clear;
%Make your move
player_move = input('Make your move [R/P/S]; ', 's');
if player_move == 'R'
player_move = 'Rocks'; disp('Human chose rocks ');
elseif player_move == 'P'
player_move = 'Paper'; disp('Human chose paper ');
elseif player_move == 'S'
player_move = 'Scissors'; disp('Human chose scissors ');
end
%Computer makes move
computer_move = randi([0,2],1);
if computer_move == 0
disp('Computer chose rocks')
elseif computer_move == 1
disp('Computer chose paper')
elseif computer_move == 2
disp('Computer chose scissors')
end
%Determine the winner
Best Answer