Skip to content

CliffLolo/three-cup_monte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Three Cup Monte

This is a simple implementation of a game where a ball is placed in one of three cups, and the user must guess which cup the ball is in. The positions of the cups are shuffled randomly before the user makes their guess. The user can enter their name and guess, and the game will check if the guess is correct or not.

How to run

  • Clone the repository.
  • Run the code using python interpreter.

The code prompts the user for their name and guess, and then checks if the guess is correct. If the guess is correct, it will print a message of congratulations to the user, otherwise it will print a message of failure and display the shuffled list.

Note

  • The game can be enhanced in terms of UI, by adding graphics and sound effects.
  • It can be made into a web application or mobile application.
  • The number of cups and balls can be increased or decreased as per the requirement.

Feel free to use and modify the code for your own projects.

Enjoy the game!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages