Coder Social home page Coder Social logo

rock-paper-scissor-game's Introduction

Module needed to be installed:

  • Tkinter
pip install tkinter

Module used:

  • Tkinter
  • random

About the project:

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:

  1. Player vs Computer
  2. 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

Player vs Computer

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.

Player vs Player

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.

How to use

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.

rock-paper-scissor-game's People

Contributors

krit-coder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.