Skip to content

Play a thrilling command-line cricket game! Choose odd or even in a toss, bat or bowl first, and then aim to score runs! Make clever choices and challenge the computer. Will you triumph as the cricket champion or concede victory to the digital opponent? Enjoy this exciting Python game now!

Notifications You must be signed in to change notification settings

Nihal-17/Python-Hand-Cricket-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

# Hand Cricket Game

This is a simple Python game that allows you to play a hand cricket match against the computer. The objective of the game is to score more runs than the computer to win the match.

## How to Play

1. Run the Python script.
2. Enter your name when prompted. If no name is entered, the default name "Player" will be used.
3. Choose odd or even during the toss.
4. Enter a number between 1 and 10.
5. The computer will randomly select a number between 1 and 10.
6. The sum of the numbers chosen by you and the computer will determine the result of the toss.
7. If the result is even and you chose "EVEN" during the toss, you can decide whether to bat or bowl. If you chose "ODD," the computer will make the decision.
8. If the result is odd and you chose "ODD" during the toss, you can decide whether to bat or bowl. If you chose "EVEN," the computer will make the decision.
9. During the game, you will take turns choosing numbers between 1 and 10. The computer will also choose a random number.
10. If your number and the computer's number match, your turn will end.
11. If your numbers don't match, the runs scored will be added to your total score.
12. The game continues until either you or the computer reaches the target score (the opponent's total score plus one).
13. The player with the higher score at the end of the game wins.

About

Play a thrilling command-line cricket game! Choose odd or even in a toss, bat or bowl first, and then aim to score runs! Make clever choices and challenge the computer. Will you triumph as the cricket champion or concede victory to the digital opponent? Enjoy this exciting Python game now!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages