Skip to content

This is a simple Python turn-based Cricket Game, similar to ๐Ÿชจ๐Ÿ“„โœ‚๏ธ, where two players (You ๐Ÿง‘โ€๐Ÿ’ป vs Computer ๐Ÿค–) switch roles between batsman and bowler. The game is played using numbers (1, 2, 4, or 6), representing the fingers ๐Ÿ–๏ธ shown during a real-life version of this game. Your goalโ“ Score more runs than your opponent before getting out! ๐Ÿ†

License

Notifications You must be signed in to change notification settings

Soumyajit4119/1v1-CricketGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ 1v1 Cricket Game - Python Mini Project ๐ŸŽฎ

A fun, Python-based 1v1 Cricket Game inspired by the childhood finger-guessing game!
Challenge the computer in a Rock๐Ÿชจ-Paper๐Ÿ“„-Scissorsโœ‚๏ธ style cricket match. Can you score more runs and win? ๐Ÿ†


๐ŸŽฎ How to Play?

1๏ธโƒฃ Starting the Game โœจ

  • Run the script and choose whether to start the game (yes/no).
  • If you choose yes, the game begins! ๐Ÿš€

2๏ธโƒฃ Game Rules ๐Ÿ“œ

  • You start as the Batsman ๐Ÿ, and the Computer ๐Ÿค– is the Bowler.
  • You pick a number from (1, 2, 4, or 6)โ€”this is your target run.
  • The computer randomly picks a numberโ€”this is its bowling guess.
  • If your number does NOT match the computerโ€™s guess, you score runs and continue batting.
  • If both you and the computer pick the SAME number, youโ€™re OUT! ๐Ÿ˜ฑ Roles switch.
  • The game follows the same logic when the computer bats.
  • The player with the highest runs at the end wins the match! ๐ŸŽ‰

๐Ÿ† Winning Conditions

โœ” If you score 50 runs in 20 balls and get out, the opponent must beat your score within 20 balls to win.
โœ” If the opponent scores less in 20 balls, no matter if they are out or not, YOU WIN! ๐Ÿ…
โœ” If both players score the same, the match is a TIE!


๐Ÿ“œ Game Flow Example

  • You (Batsman) pick: 4๏ธโƒฃ
  • Computer (Bowler) picks: 2๏ธโƒฃ โ†’ โœ… You score 4 runs, continue batting
  • You pick: 6๏ธโƒฃ
  • Computer picks: 6๏ธโƒฃ โ†’ โŒ OUT! Roles switch
  • Computer (Batsman) picks: 2๏ธโƒฃ
  • You (Bowler) pick: 4๏ธโƒฃ โ†’ โœ… Computer scores 2 runs, continues batting
  • Computer picks: 1๏ธโƒฃ
  • You pick: 1๏ธโƒฃ โ†’ โŒ OUT!
  • Final Score Comparison: Whoever has more runs wins! ๐ŸŽŠ

โ‰๏ธ How to Install & Run the Game?

1๏ธโƒฃ Install Python (if not already installed)

Download and install Python from python.org.

2๏ธโƒฃ Download or Clone the Repository

git clone https://github.com/YOUR_USERNAME/1v1-CricketGame.git
cd 1v1-CricketGame

3๏ธโƒฃ Or, simply download the 1v1Cricket_Game.exe file and enjoy the game! ๐ŸŽฎ๐Ÿ

About

This is a simple Python turn-based Cricket Game, similar to ๐Ÿชจ๐Ÿ“„โœ‚๏ธ, where two players (You ๐Ÿง‘โ€๐Ÿ’ป vs Computer ๐Ÿค–) switch roles between batsman and bowler. The game is played using numbers (1, 2, 4, or 6), representing the fingers ๐Ÿ–๏ธ shown during a real-life version of this game. Your goalโ“ Score more runs than your opponent before getting out! ๐Ÿ†

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages