Write a function to generate rock-paper or scissors


Write a function to generate ‘rock', ‘paper', or ‘scissors', each answer being equally likely. Write a script that calls the function twice. The first function call generates the move by player 1, the second function call generates the move by player 2. The script should decide who wins or whether a tie resulted and display this.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a function to generate rock-paper or scissors
Reference No:- TGS0712426

Expected delivery within 24 Hours