HandSphere is a Python-based hand gesture game that combines two classic games, Hand Cricket and Rock Paper Scissors, into a single interactive experience. The game leverages hand gestures and user input to create an engaging and challenging gameplay environment.
The objective of HandSphere is to compete against the computer in a series of hand gesture matches. The game consists of two main components: Hand Cricket and Rock Paper Scissors.
Hand Cricket is a classic game where players use hand gestures to represent cricket scores. The computer randomly selects a number from 1 to 6, and the player also selects a number using their hand gesture. If the player's number matches the computer's number, the player is out. Otherwise, the player's number is added to their score. The game continues until the player is out or chooses to end the inning.
Rock Paper Scissors is a popular hand gesture game where players choose between rock, paper, and scissors gestures to determine the winner. In HandSphere, the player competes against the computer in a series of rounds. The computer's hand gesture is randomly generated, and the player selects their hand gesture to challenge the computer. The winner of each round is determined based on the classic Rock Paper Scissors rules.
- Interactive and intuitive user interface using the tkinter library
- Hand gesture recognition for player input
- Randomized computer hand gestures
- Score tracking for each game
- Multiple difficulty levels to adjust the challenge
- Visual feedback for game results
- Ability to play multiple rounds and innings
- Restart and quit options for the game
To run HandSphere, ensure you have Python 3.x installed on your system. Follow these steps:
- Clone the repository or download the source code files.
- Install the required dependencies by running the following command:
pip install tkinter pip install pillow
- Run the game by executing the following command:
python HandSphere.py
- Launch the HandSphere game.
- Select the desired difficulty level for the game.
- Follow the on-screen instructions to play Hand Cricket and Rock Paper Scissors.
- Use hand gestures to represent your moves according to the game prompts.
- Observe the computer's hand gestures and make your selections accordingly.
- Track your score and game progress on the screen.
- Continue playing rounds or innings until you decide to quit.
- Enjoy the challenge and have fun!
- Use appropriate hand gestures to mimic cricket scores in Hand Cricket.
- Show rock, paper, or scissors hand gestures to compete in Rock Paper Scissors.
- Use the mouse to navigate the game interface and select options.
This project is licensed under the MIT License. Feel free to modify and distribute the code for personal and educational purposes.
The HandSphere game was inspired by the classic games Hand Cricket and Rock Paper Scissors. It leverages the power of Python, tkinter, and hand gesture recognition techniques to create an enjoyable gaming experience.
Libraries and resources used in this project:
Contributions to HandSphere are always welcome! If you have any ideas, suggestions, or bug fixes, please submit a pull request or open an issue on the project's GitHub repository.
Let's make HandSphere even better together!