Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.49 KB

File metadata and controls

41 lines (29 loc) · 1.49 KB

🎲 Games Room - using Python

This repository contains three simple Python mini-games:

  1. Number Guess Game
  2. Modified Rock-Paper-Scissors-Lizard-Spock (RPSLS)
  3. Coin Flip Game

🎮 Description

Number Guess Game You guess a number between 2 and 12 (the possible sum of two dice rolls). The program rolls two dice and sums them up. You earn points based on how close your guess is to the dice sum:

  • Exact match: 10 points
  • Within 1 of the sum: 5 points
  • Within 3 of the sum: 1 point
  • Otherwise: 0 points

Modified RPSLS Game A variation of the classic Rock-Paper-Scissors game with two additional moves: Lizard and Spock. The interactions between Spock and Lizard are swapped from the traditional rules. You pick a move, the computer randomly picks one, and points are awarded as follows:

  • Win: 10 points
  • Tie: 5 points
  • Lose: 0 points

Coin Flip Game Simulates repeated coin flips. Scoring depends on the first flip:

  • If the first flip is tails, you earn 2 points for each heads flip until the next tails, then the game ends.
  • If the first flip is heads, you earn 1 point for each tails flip until you flip heads two more times, then the game ends.

🏆 How to Play

  1. Run the program.
  2. Enter your name.
  3. Select the game you want to play by entering the number corresponding to the game menu.
  4. Follow the prompts to play the selected game.
  5. Your points accumulate as you play.
  6. Choose the exit option to quit and see your total points.