Freitag Software
The Joy of Writing Software
  • Home
    • Links
  • My Software
    • JavaScript Programs >
      • Dots
      • The Code Cracker
      • The Deserted Ship
      • Flying Text
    • Java Programs >
      • Dot Animation
      • Operation Rescue >
        • Mazes for Programmers
      • Battleship!
      • Blackjack
      • Draw Poker
      • State Pattern Demo
      • Falling Blocks
    • Android Programs >
      • The Oracle
      • RPSLS
      • Gemini Falcon: Asteroid Miner
      • Gemini Falcon: All Boxed In >
        • Gemini Falcon >
          • Privacy Policy
          • A Game Oddity
      • Ay Caramba
      • Dots vs Dots
      • Ants vs Ants
    • Twine Stories
  • Random Thoughts
  • Book Reviews
  • Teaching
    • Real-Life Stories
    • Flying Text
  • About
    • Contact

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. 
Picture
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. 
Powered by Create your own unique website with customizable templates.