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? ๐
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! ๐
โ 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!
- 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! ๐
Download and install Python from python.org.
git clone https://github.com/YOUR_USERNAME/1v1-CricketGame.git
cd 1v1-CricketGame