Question
Create a truth table for the following game below. With 4 inputs and 3 outputs. Two players are playing a game. Both players are holding
Create a truth table for the following game below. With 4 inputs and 3 outputs.
Two players are playing a game. Both players are holding either 0,1,2, or 3 fingers up. If the sum is even, player 1 wins. If the sum is odd, player 2 wins. The sum of 5 is the max total each player can hold up. If the sum is greater than 5, the game must be redone. AB represents player 1. CD represents player 2.
P1 wins- 1, if player 1 wins (even sum of fingers), 0 otherwise
P2 wins- 1, if player 2 wins (odd sum of fingers), 0 otherwise
Out of bounds-1 if sum of fingers held up is 0, 1, or 6
Inputs are (A,B,C,D)
Outputs are(E,F,G)
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