I am required to find winning probability and algorithm of winning a game between two players in the above mentioned game.
The catch is to find the winning stone, paper, scissor pattern so that
The first player wins every time i.e. at least 2 times in a row in a given match.
Since for any choice you make your opponent has a winning choice, a losing choice and a draw and visa versa then assuming your opponent chooses randomly there is no optimum strategy. I did once write a computer program once though that would beat most humans more often than not in extended games by looking for patterns. People are not random.
The sequence can't be calculated in advance: If I know what move you are going to play I can always pick a move that will beat you.
What I did was record every move by the player and computer and try to find the longest matching sequence of past moves that matched the moves recently played to see what my opponent was likely to play next. I then chose the winning move. The program in effect learnt the player. At the start of the game the player and computer were winning roughly the same number of games but after a minute or so of playing the computer was able to guess the humans next move more often than not.
When I tested it using against a random opponent me throwing a die (singular of dice) and selecting "Rock" for 1 or 2, "Paper" for 3 or 4 and "Scissors" for 5 or 6. It again returned to the winner being more or less random.