create array scoreboard for rock paper scissors game using table lookup in matlab
main.m
% Create a 3x3 matrix to represent the scoreboard for Rock-Paper-Scissors game% Rows represent the user's choice (1=Rock, 2=Paper, 3=Scissors)% Columns represent the computer's choice% Each cell in the matrix will contain the result of the game (1=Win, 0=Tie, -1=Loss)
scoreboard = [
0-11; % User chose Rock10-1; % User chose Paper-110% User chose Scissors];
% Display the scoreboarddisp('Scoreboard for Rock-Paper-Scissors game:');
disp(' Computer:');
disp('User Rock Paper Scissors');
disp(scoreboard);