โ๐โ๏ธ๐ฆ๐ Rock-Paper-Scissors-Lizard-Spock (Go Edition)
A terminal-based game of Rock, Paper, Scissors, Lizard, Spock โ written entirely in Go.
Inspired by The Big Bang Theory and designed to reduce the number of ties from the classic Rock-Paper-Scissors.
๐ฎ Game Modes
This version supports:
- Classic Mode: Rock-Paper-Scissors
- Extended Mode: Rock-Paper-Scissors-Lizard-Spock
The computer picks its move randomly, and you battle it out in the terminal.
๐งฉ Rules
As explained by Sheldon Cooper:
- 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
- Rock crushes Scissors
๐ธ ASCII Art
Each move comes with its own ASCII art for maximum nerd satisfaction:
Rock: _______
---' ____)
(_____)
(_____)
(____)
---.__(___)
Paper: _______
---' ____)____
______)
_______)
_______)
---.__________)
โฆand more for Scissors, Lizard, and Spock.
๐ How to Run
-
Clone the repo:
git clone https://github.com/yourusername/rpsls-go.git cd rpsls-go
-
Run the game:
go run main.go
๐ Features
- Fully interactive terminal gameplay
- Input validation (no more typos ruining your match)
- Fun ASCII art for each move
- Randomized computer opponent
- Looping draw condition (keep going until there's a winner)
๐ Example Gameplay
Choose your move:
Rock
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
Paper
_______
---' ____)____
______)
_______)
_______)
---.__________)
... (more ASCII moves) ...
Welcome to the game of Rock, Paper, Scissors, Lizard, Spock
Do you want to read the rules? [y/n]: y
Sheldon explains:
Scissors cuts Paper, Paper covers Rock, Rock crushes Lizard, ...
Enter your move (Rock, Paper, Scissors, Lizard, Spock): Spock
You chose: Spock
Computer chose: Lizard
You lost! Hahaha, you suck!
๐ License
MIT License โ feel free to fork, modify, and enjoy.
๐ก Credits
- Inspired by The Big Bang Theory
- ASCII Art adapted from various open-source snippets