Rock Paper Scissor Game in Multisim

Verified

Added on  2023/05/27

|5
|563
|146
AI Summary
This article explains how to create a Rock Paper Scissor game in Multisim with two players and outputs for win, tie and lose. It includes the boolean logic expressions and circuit diagram.
tabler-icon-diamond-filled.svg

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
Rock Paper Scissor Game in Multisim:
Two number of players.
Rock has advantage over scissor, scissor has advantage over paper and paper has advantage
over rock.
Inputs:
R1, P1, S1 (player 1)
R2,P2,S2 (player 2)
Outputs:
W1(player one wins)
W2( player 2 wins)
T (Tie)
If at least one or more players do not show one of the three inputs then all the outputs are
zero.
Truth table:
Input Player 1 Input Player 2 Output
R1 P1 S1 R2 P2 S2 W1(playe
r 1 wins)
W2(player
2 wins)
T(Tie)
0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
0 0 0 0 0 1 0 0 0
0 0 1 0 0 1 0 0 1
0 1 0 0 0 1 0 1 0
1 0 0 0 0 1 1 0 0
0 0 0 0 1 0 0 0 0
0 0 1 0 1 0 1 0 0
0 1 0 0 1 0 0 0 1
0 0 0 1 0 0 0 0 0
0 0 1 1 0 0 0 1 0
0 1 0 1 0 0 1 0 0
1 0 0 0 1 0 0 1 0
1 0 0 1 0 0 0 0 1
Boolean logic expressions:
W1 = R1*P1’*S1’*R2’*P2’*S2 + R1’*P1’*S1*R2’*P2*S2’ + R1’*P1*S1’*R2*P2’*S2’
W2 = R1’*P1*S1’*R2’*P2’*S2 + R1’*P1’*S1*R2*P2’*S2’ + R1*P1’*S1’*R2’*P2*S2’
T = R1’*P1’*S1*R2’*P2’*S2 + R1’*P1*S1’*R2’*P2*S2’ + R1*P1’*S1’*R2*P2’*S2’
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Multisim Circuit diagram:
Sample Simulations:
Player 1: Rock(R1=1)
Player 2: Paper(P2=1)
Player 1: Scissor(S1=1)
Player 2: Paper(P2=1)
Document Page
Player 1: Rock(R1=1)
Player 2: Rock(R2=1)
Document Page
W1 voltage transient graph:
tabler-icon-diamond-filled.svg

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
W2 voltage transient graph:
From the above two graphs it can be seen that the voltage in outputs W1 and W2 is 5 volts
when they win and it is 0 volts when they lose or any one of them are not playing. In the
similar way the output voltage T is 5 volts when there is a tie between the players i.e. each
one of them chose either of same element (Rock, paper or scissor) simultaneously, otherwise
the output T is 0.
chevron_up_icon
1 out of 5
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]