aayushi-droid / Python-Thunder

A curated list of Python applications
MIT License
86 stars 160 forks source link

Rock, Paper, Scissors! #186

Closed gokulrajanpillai closed 3 years ago

gokulrajanpillai commented 3 years ago

Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add

Problem statement: Write a function to simulate the rock, paper, scissors game between Abigail and Benson. Problem Link: https://edabit.com/challenge/p6uXeD7JC7cmxeD2Z


Before submitting a PR please Check some details.Check Edabit for problem task

Each game is represented by an array of length 2, where the first element represents what Abigail played and the second element represents what Benson played.

Given a sequence of games, determine who wins the most number of matches. If they tie, output "Tie".

R stands for Rock P stands for Paper S stands for Scissors

Examples calculate_score([["R", "P"], ["R", "S"], ["S", "P"]]) ➞ "Abigail"

Ben wins the first game (Paper beats Rock).

Abigail wins the second game (Rock beats Scissors).

Abigail wins the third game (Scissors beats Paper).

Abigail wins 2/3.

calculate_score([["R", "R"], ["S", "S"]]) ➞ "Tie"

calculate_score([["S", "R"], ["R", "S"], ["R", "R"]]) ➞ "Tie"

This repository is vaild for HacktoberFest2020

Read before making PR - How to contribute on Github Good Luck,

gokulrajanpillai commented 3 years ago

@aayushi-droid: Please add the label hard and assign this issue to me. Thanks in advance.

DevLokCodes commented 3 years ago

can I work on this problem could you assign this problem to me

rianrishu commented 3 years ago

Assign me to this task

gokulrajanpillai commented 3 years ago

@rianrishu @DevLokCodes This is already solved, I have made a PR for this aswell. Please follow the repo guidelines and make another issue.

aayushi-droid commented 3 years ago

Thanks for messaging but priority will give to issue-author(who created the issue)