Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 720 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 720 Bytes

IISc open day 2024 - Databased rock paper scissors

This is a simple python program that levarages mediapipe in order to detect hands and play rock paper scissors against the computer picking randomly

Instructions

  • This program requires mediapipe, opencv-python and keyboard installed
pip install opencv-python mediapipe keyboard
  • Press esc to switch to out of game mode, here up to four hands are detected at once
  • Press enter to switch into game mode
    • Here, there are 5 rounds. Show your hand when the text "Ready" appears.
    • A score above 8 is counted as a win (you receive 3 for a win and 1 for a draw)
    • Hold your hand upright for best results