Algo-Phantoms / Algo-Tree

Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.
MIT License
361 stars 621 forks source link

ROCK PAPER SCISSORS IN CPP #1258

Open priyanka001tech opened 3 years ago

priyanka001tech commented 3 years ago

Is your feature request related to a problem? Please describe.

The RPS world championship is here. Here two players A and B play the game. You need to determine who wins. Both players can choose moves from the set {R,P,S}. The game is a draw if both players choose the same item. The winning rules of RPS are given below:

Rock crushes scissor Scissor cuts paper Paper envelops rock

Example 1:

Input: S = "RR" Output: DRAW Explanation: Both A and B chooses a Rock. Hence, it's a draw.

Do you want to work on it I would like to code it as a gssoc participant 2021

ranjananubhav7 commented 3 years ago

I would like to contribute on this project.