https://github.com/vipulbunny/game-using-random-module
The user is prompted to enter either "Odd" or "Even". The user then inputs a number between 1 and 6. The computer randomly selects a number between 1 and 6. The sum of the user's number and the computer's number is calculated. If the sum is odd and the user chose "Odd", the user also wins the toss and is prompted to choose between "Bat" or "Ball".
https://github.com/vipulbunny/game-using-random-module
Last synced: 10 months ago
JSON representation
The user is prompted to enter either "Odd" or "Even". The user then inputs a number between 1 and 6. The computer randomly selects a number between 1 and 6. The sum of the user's number and the computer's number is calculated. If the sum is odd and the user chose "Odd", the user also wins the toss and is prompted to choose between "Bat" or "Ball".
- Host: GitHub
- URL: https://github.com/vipulbunny/game-using-random-module
- Owner: VIPULbunny
- Created: 2024-08-05T18:21:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T18:21:49.000Z (almost 2 years ago)
- Last Synced: 2024-08-05T21:33:09.645Z (almost 2 years ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Game-using-random-module
The user is prompted to enter either "Odd" or "Even". The user then inputs a number between 1 and 6. The computer randomly selects a number between 1 and 6. The sum of the user's number and the computer's number is calculated. If the sum is odd and the user chose "Odd", the user also wins the toss and is prompted to choose between "Bat" or "Ball".