Write a MARIE program to implement one round of rock paper scissors game. Your program should…

Stuck with a difficult assignment? No time to get your paper done? Feeling confused? If you’re looking for reliable and timely help for assignments, you’ve come to the right place. We promise 100% original, plagiarism-free papers custom-written for you. Yes, we write every assignment from scratch and it’s solely custom-made for you.

Order a Similar Paper Order a Different Paper

Write a MARIE program to implement one round of rock paper scissors game. Your program should represent the three moves ‘rock’, ‘paper’ and ‘scissors’ with numbers 1, 2 and 3 respectively. When the program is run, there should be two input prompts, one after the other, to ask for player 1’s and player 2’s moves (a number 1, 2 or 3). Then the program would compare both numbers and apply the following rules to work out the winner.

  • Paper beats rock, scissors beat paper and rock beats scissors.
  • If both moves are same, round is drawn.

Depending on the results of comparison there will be one of the three outputs: ‘P1 Won’ or ‘P2 Won’ or ‘Draw’. Once a result is obtained, the program would take a third input from user to ask if they want to repeat with another round. User should enter a number 1 to indicate ‘yes’ and that should repeat the whole process. Any input other than 1 should be treated as ‘no’ and quit the program.

Use ‘decimal’ mode for inputs and ‘Unicode’ mode for outputs. To display text on output, you need to print it character by character using their ASCII codes. Insert a line break (ASCII code 10) before starting next round. Assume that the user will always provide valid numbers as input — do not worry about dealing with invalid input data. Also write comments within your program so that a reader can understand it easily.

Use the online MARE simulator at this link: https://marie.js.org/

For guidance on how to write MARIE programs, watch these two videos: MARIE Programming Part-I and MARIE Programming Part-II


We’ve proficient writers who can handle both short and long papers, be they academic or non-academic papers, on topics ranging from soup to nuts (both literally and as the saying goes, if you know what we mean). We know how much you care about your grades and academic success. That's why we ensure the highest quality for your assignment. We're ready to help you even in the most critical situation. We're the perfect solution for all your writing needs.

Get a 15% discount on your order using the following coupon code SAVE15

Order a Similar Paper Order a Different Paper