Object Oriented Programming Class Projects

Rock Paper Scissors Lizard Spock

This is a text based implementation of the classic game from The Big Bang Theory. As explained in this video, the game of rock paper scissors lizard spock has a number of rules to follow that are best understood visually. The following diagram demonstrates how points are scored.

Vectors pointing from winning to losing hand shapes

The game is played as follows:

  1. The player chooses a hand either numerically by choosing a number between 1 and 5, or by entering the name of the hand shape chosen.
  2. The computer randomly chooses a shape to throw.
  3. The round winner is determined.
  4. A point is awarded to the winner of the round.
  5. Gameplay continues until either the player or the computer reach 3 rounds won in which the winner of the game is determined.

Gameplay:

text-based gameplay with ASCII art for hand shapes

To play for yourself, check out the GitHub repository!

Speech Synthesizer

Computer voices always sound a bit off. The words are familiar, yet their tempo and articulation are unlike any commonly spoken English. A speech synthesizer provides the perfect balance between eeriness and comfort to make you laugh.

This program implements a speech sythesizer to read a song’s lyrics from a .txt file.

Check out the GitHub repository!