I need help with my project.
Here are the details. I need to implement it on logic works.
The FunBrain Magician is game that will pick a secret number between 0 – 31. User guesses what number it is. If the guess is high or low, FunBrain will give a hint.
User will ask the magician to generate the random number by setting input GRN = 1. Magician will take the guess after every 4 cycles. If the answer is correct CA will be set to 1, otherwise H or L will be set accordingly. In the end magician should tell in how many turns user is able to guess the correct number.
Input
Clock Pulse CP
Generate Random number GRN
Guessed Number C0…C4
Output
Correct Answer CA
Number of guesses D0…D4
High H
Low L
Here are the details. I need to implement it on logic works.
The FunBrain Magician is game that will pick a secret number between 0 – 31. User guesses what number it is. If the guess is high or low, FunBrain will give a hint.
User will ask the magician to generate the random number by setting input GRN = 1. Magician will take the guess after every 4 cycles. If the answer is correct CA will be set to 1, otherwise H or L will be set accordingly. In the end magician should tell in how many turns user is able to guess the correct number.
Input
Clock Pulse CP
Generate Random number GRN
Guessed Number C0…C4
Output
Correct Answer CA
Number of guesses D0…D4
High H
Low L