Let's Play a Game...
Last week, I published my Friends Random Episode Selector and shared to LinkedIn. One of the comments was a request to do the same thing for The Big Bang Theory. I looked for data and I didn't find anything that supported an interactive random selector like my Friends version did. So, instead, I decided to play some Rock, Paper, Scissors, Lizard, Spock.
If you're not familiar with the game, I recommend you go to HBO Max and check out the episode "The Lizard-Spock Expansion" - Season 2, Episode 8. For those that don't want to watch, an quick synopsis...Sheldon and Raj disagree on what to watch ("Saturn 3" vs "Deep Space Nine"). To settle the disagreement, Raj suggests they play Rock, Paper, Scissors. Insisting that there is too much likelihood of a tie, Sheldon suggests using Rock, Paper, Scissors, Lizard, Spock. He then goes through the rules that our simulation here uses:
"Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock and as it always has, rock crushes scissors."
They still tie, but that's enough background.
The viz below is a play on the game, and leverages a simulation that I ran in Python. The Python code was adapted from a Rock, Paper Scissors game that I found on the web. I modified the logic, changed it from a simple game by adding a while loop. Dumped the data to Excel, and took it into Tableau. The Python code is at the bottom of this page if you'd like to try it yourself.
In Tableau, with the power of Parameter Actions, a user can come in and start playing Rock, Paper, Scissors, Lizard, Spock from a random starting point in the 5,000 simulations I ran. With some handy dandy logic (and a LOT of trial and error), the dashboard keeps score for you as well. In addition to the functionality of the dashboard, we've got a bit of analysis on the 5,000 simulations I ran. Not all of the possible analysis, but I didn't want to give away too much :).
Try your hand at some Rock, Paper, Scissors, Lizard, Spock in the dashboard below!