Skip to content

A minigames' Command Line collection

License

Notifications You must be signed in to change notification settings

Jaime-alv/Mini-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mini-games

Work in Progress.

Set up

Games included:

Bagels

In Bagels, a deductive logic game, you must guess a secret four-digit number based on clues.

The game offers one of the following hints in response to your guess:

  • “Pico” when your guess has a correct digit in the wrong place
  • “Fermi” when your guess has a correct digit in the correct place and
  • “Bagels” if your guess has no correct digits.

For example, if the secret number was 2148 and your guess was 8439, the clues would be Fermi Pico.

You have 4 tries to guess the secret number.

Number of tries and secret number's length can be configured in game.

A version of this game is featured in the book "The Big Book of Small Python Projects" by Al Sweigart.

Rock, paper, scissors

Rock, paper, scissors is a hand game, usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand. These shapes are "rock" (a closed fist), "paper" (a flat hand), and "scissors" (a fist with the index finger and middle finger extended, forming a V).

  • Scissors wins paper
  • Paper wins rock
  • Rock wins scissors

Game can be set for a number of rounds, or infinite mode.

Guess the number

This is a guess the number game. Computer will draw a number between 1 and 50. You have 5 tries or you'll lose the game.

The game tracks wins/loses ratio.

About

A minigames' Command Line collection

Topics

Resources

License

Stars

Watchers

Forks

Languages