BhaskarAcharjee / HandSphere

Hand Gesture Game combining Hand Cricket and Rock Paper Scissors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HandSphere - Hand Gesture Game

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.

Game Description

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

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

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.

Features

  • 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

Installation

To run HandSphere, ensure you have Python 3.x installed on your system. Follow these steps:

  1. Clone the repository or download the source code files.
  2. Install the required dependencies by running the following command:
    pip install tkinter
    pip install pillow
    
  3. Run the game by executing the following command:
    python HandSphere.py
    

Gameplay Instructions

  1. Launch the HandSphere game.
  2. Select the desired difficulty level for the game.
  3. Follow the on-screen instructions to play Hand Cricket and Rock Paper Scissors.
  4. Use hand gestures to represent your moves according to the game prompts.
  5. Observe the computer's hand gestures and make your selections accordingly.
  6. Track your score and game progress on the screen.
  7. Continue playing rounds or innings until you decide to quit.
  8. Enjoy the challenge and have fun!

Game Controls

  • 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.

License

This project is licensed under the MIT License. Feel free to modify and distribute the code for personal and educational purposes.

Acknowledgments

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:

Contributing

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!


Have a great time playing HandSphere!

About

Hand Gesture Game combining Hand Cricket and Rock Paper Scissors

License:MIT License


Languages

Language:Python 100.0%