Rock Paper Scissors Oracle
Description:
You are the rock paper scissors oracle.
Famed throughout the land, you have the incredible ability to predict which hand gestures your opponent will choose out of rock, paper and scissors.
Unfortunately you're no longer a youngster, and have trouble moving your hands between rounds. For this reason, you can only pick a single gesture for each opponent. If it's possible for you to win, you will, but you're also happy to tie.
Given an array of gestures — for example ["paper", "scissors", "scissors"]
— return the winning gesture/s in the order in which they appear in the title, separated by a forward slash. For example, if rock and scissors could both be used to win you would return:
"rock/scissors"
If it's not possible for you to win then return:
"tie"
See https://en.wikipedia.org/wiki/Rock%E2%80%93paper%E2%80%93scissors if you're not familiar with rock paper scissors.
Second attempt at my first Kata...
Similar Kata:
Stats:
Created | Oct 17, 2016 |
Published | Oct 17, 2016 |
Warriors Trained | 1775 |
Total Skips | 28 |
Total Code Submissions | 2466 |
Total Times Completed | 370 |
JavaScript Completions | 206 |
Python Completions | 182 |
Total Stars | 21 |
% of votes with a positive feedback rating | 86% of 106 |
Total "Very Satisfied" Votes | 82 |
Total "Somewhat Satisfied" Votes | 18 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 7 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |