Answered step by step
Verified Expert Solution
Link Copied!

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 00
Paper 01
Lizard 10
Spock 11
As you will notice, using 4 options requires 2 bits for its representation. Having 3
options, it would leave us with an unused combination, which would result in having some inputs
incorrect or illegal. The same would happen with 5 or more options, which would also require bits
additional.
On the other hand, the result of the game would be that player 1 wins (which we will represent as
00), that player 2 wins (which we will represent as 11) and that there is a tie (which
we will represent as 01). You may find the encoding of the result strange. In fact,
other coding such as: Player 1 wins coded as 10, player 2 wins coded as
01 and tie coded as 00(or as 11), might seem more intuitive. However, in the end
of the exercise you will notice that the coding: 00,11 and 01(player 1 wins, player 2 wins, tie
respectively) is more convenient.
To complete, I propose that you add a second combinatorial circuit that turns on a
led when player 1 wins and another led for when player 2 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions