Rock-paper-scissors-lizard-Spock is an expansion of the classic selection method game rock-paper-scissors. It operates on the same basic principle, but includes two additional weapons: the lizard and Spock (formed by the Star Trek Vulcan salute). This reduces the chances of a round ending in a tie (from 1/3 to 1/5).
Computer randomly pick their move and the game goes on till user quits. Following stats are recoreded and displayed at the end of the game
- Total Games played
- Computer Wins (Number and percentage)
- Human Wins (Number and percentage)
- Ties (Number and Percentage)
Computer rather picking randomly, it uses frequency analysis, the program simply identifies the most frequently played move by the user and picks a counter move.