- Tkinter
pip install tkinter
- Tkinter
- random
In this project we will create a rock paper scisscor game using Tkinter.We used to play this game in our childhood using symbols made by our hand. This game has two mode:
- Player vs Computer
- Player vs Player
If you play with the computer then just fill your name in the appropriate place. If you play with another player then just both of your name in the appropriate place.
Then select the mode and press Play button
In this mode we just need to select(or say click) the symbol you want to choose. After that the computer will select its symbol randomly and the game result will be shown on the screen.
In this mode first player1 will select(or say click) the symbol you want to choose and then player2 will select(or say click) the symbol he want to choose. After that accordingto the game rule the result will be shown on the screen. (Keep in mind that when player1 will be choosing the symbol, player2 must not be seeing the screen.)
If you want to change the mode then close the current mode window and then select another mode and press Play Button.
Open command prompt/Terminal of your OS.
Change the location were you want to clone the project.
Suppose you want it to clone in your Desktop folder
cd Desktop
Now copy the below command to clone the project
git clone https://github.com/Krit-coder/Rock-Paper-Scissor-Game.git
Now change the directory to where your code is stored.
cd Rock-Paper-Scissor-Game/Project
Now run the code
python RPS.py
Now the code will run.