Rock, Paper, Scissors, Lizard, Spook
One of the homework assignments I gave my students in Programming I was to code this classic game as shown on the Big Bang Theory. So for fun I just took a few days between semesters to make an app of it.
"Why Spook and not Spock?", you might ask. Well, I published it with Spock in the name and Google Play Store suspended the app due to copyright. So I changed it.
The idea behind this particular implementation was to make it as simple as possible - no best of 3 or 7, no best scores... nothing but playing the game.
|
This app uses a very basic AI to remember how the human played to predict the human's next move. For such a simple AI, it works surprisingly well. But, of course, if the human plays relatively randomly, the computer will also play randomly and either player could win.