-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from ayan-joshi/Readme-file-for-Hand-Cricket
Added Readme File for Hand Cricket
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
# Hand Cricket Game | ||
|
||
## Overview | ||
This is a simple command-line-based Hand Cricket game implemented in Python. It allows you to play cricket against a computer opponent. You can either choose to bat first or bowl first and select the difficulty level of the computer opponent. | ||
|
||
## Features | ||
- User-friendly command-line interface. | ||
- Choose the number of overs (1-10) for the game. | ||
- Choose to bat or bowl first. | ||
- Three difficulty levels for the computer opponent (Easy, Medium, Hard). | ||
- Realistic cricket scoring and gameplay. | ||
|
||
|
||
### Installation | ||
1. Clone this repository to your local machine: | ||
|
||
```bash | ||
git clone https://github.com/your-username/hand-cricket-game.git | ||
``` | ||
|
||
2. Navigate to the project directory: | ||
|
||
```bash | ||
cd hand-cricket-game | ||
``` | ||
|
||
### Usage | ||
1. Open your terminal or command prompt. | ||
|
||
2. Navigate to the project directory. | ||
|
||
3. Run the game using Python: | ||
|
||
```bash | ||
python hand_cricket.py | ||
``` | ||
|
||
4. Follow the on-screen instructions to play the game. | ||
|
||
## Game Rules | ||
- You can choose to bat or bowl first. | ||
- While batting, enter your shot choice (1-6) for each ball. | ||
- While bowling, enter your delivery choice (1-6) for each ball. | ||
- If your choice matches the computer's, you are out. | ||
- Score as many runs as you can while batting. | ||
- Try to dismiss the computer's batsmen while bowling. | ||
- The game ends after the specified number of overs. | ||
|
||
## Contributing | ||
Contributions are welcome! If you'd like to contribute to this project, please follow these steps: | ||
1. Fork the project. | ||
2. Create a new branch for your feature or bug fix. | ||
3. Make your changes and commit them. | ||
4. Push your changes to your fork. | ||
5. Submit a pull request to the main repository. | ||
## Acknowledgments | ||
- This game was inspired by the popular hand cricket game played by many cricket enthusiasts. | ||
- Special thanks to the Python community for providing helpful libraries and resources. |