A fun, interactive hand cricket game where you can play against the computer.
Project description
Hand Cricket
A fun, interactive hand cricket game where you can play against the computer. Choose to bat or bowl and see if you can win!
Features
- Interactive Gameplay: Play against the computer in a classic hand cricket match.
- Toss Mechanism: Choose "Even" or "Odd" for the toss to decide your role.
- Batting and Bowling: Experience both roles and aim to outscore the opponent.
Installation
pip install handy_cricket
Usage
- import handy_cricket
- handy_cricket.main()
This will automatically trigger the game, and you can start playing.
Functions
Here is a quick overview of the main functions in the package:
main()
Starts the hand cricket game. This function handles the main menu where you can start the game, view instructions, or exit.
start_game()
Initiates the toss and begins the gameplay based on the user’s selection (Even or Odd).
toss(opt)
Handles the toss logic where the user chooses either Even or Odd.
user_batting()
Executes the gameplay when the user chooses to bat first.
comp_batting()
Executes the gameplay when the computer bats first.
show_instructions()
Displays the instructions on how to play the game.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file handy_cricket-1.0.0-py3-none-any.whl.
File metadata
- Download URL: handy_cricket-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5df878e5e7e46a0b5ddb5b19224f4a3ea08e2f37f37f30b0979f62fb3faa2ee
|
|
| MD5 |
94f48d1110448f4f09e1695cb8b7bfbd
|
|
| BLAKE2b-256 |
426937ac713bb23c15d5fdff293618856367d07834da6138ce5c59017e0ddc30
|