Coders Packet

Rock, Paper and Scissor game which is played to predict the outcome

By Bachewal Sai chandher

Rock, paper and scissor is a game which contains 3 attributes rock, paper and scissor. By using the conditions written in the code the outcome of the game is guessed.

->Rock, paper, scissor is a game which contain 3 attributes rock, paper and scissor.

->The module used in the game is random which selects random attribute from the 3 attributes.

->It runs on the conditions written in the code.

->In this game, rock beats scissor, scissor beats paper and paper beats rock.

->Conditions are, if randomly selected attribute is rock and statically typed attribute is scissor then the player wins else he losses.

->If randomly selected attribute is scissor and statically selected typed is paper then the player wins else he losses.

->If randomly selected attribute is paper and statically selected typed is rock then the player wins else he loses.

->If the randomly selected attribute is the same as the statically typed attribute then there is the situation of tie.

 

Download Complete Code

Comments

  • Bachewal Sai chandher (bachewalchandu123):

    This is written in python language

  • Reply to this comment