Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design a circuit in tinkercad, which simulates two players in the game of rock paper or scissors using dip switches, and with three LEDs they
Design a circuit in tinkercad, which simulates two players in the game of rock paper or scissors
using dip switches, and with three LEDs they will show the winner, or tie, ALSO ADD THE LOGIC DIAGRAM OF THE GAME
Design a spock lizard rock paper scissors GAME combinatorial circuit IN TINKERCAD:
Stone vs paper The paper wins, because the paper surrounds the stone
Stone vs lizard The stone wins, because the stone hits the lizard
Stone vs Spock Spock wins, as Spock vaporizes the stone
Paper vs lizard Lizard wins, because the lizard eats the paper
Paper vs Spock Paper wins, because Paper disapproves of Spock
Lizard vs Spock The lizard wins, because the lizard poisons Spock.
To alleviate this situation, we propose to encode both the inputs and outputs of the
following way. The input options will be represented with two boolean variables like
shown in the following table:
Representation Option
Stone
Paper
Lizard
Spock
As you will notice, using options requires bits for its representation. Having
options, it would leave us with an unused combination, which would result in having some inputs
incorrect or illegal. The same would happen with or more options, which would also require bits
additional.
On the other hand, the result of the game would be that player wins which we will represent as
that player wins which we will represent as and that there is a tie which
we will represent as You may find the encoding of the result strange. In fact,
other coding such as: Player wins coded as player wins coded as
and tie coded as or as might seem more intuitive. However, in the end
of the exercise you will notice that the coding: and player wins, player wins, tie
respectively is more convenient.
To complete, I propose that you add a second combinatorial circuit that turns on a
led when player wins and another led for when player wins. The tie can be associated
to the case in which no LED lights up
The problem includes not only the design of the two circuits, but it will be necessary to verify their
functioning.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started