subject

Matching-Opponent is a simple two-player game where players simultaneously submit a number. In each round, players simultaneously submit either the number 0 or the number 1. Each player has a different objective to be declared winner. . Player A's goal is to match the input of Player B two times in a row and then to not match for one turn. (MATCH -> MATCH -> NO MATCH) .Player B's has a similar but different set of goals. In order to win, player 2 must not match player 1's input for one turn and then match the input of player 1 for two turns in a row. (NO MATCH - > MATCH-> MATCH) Your job is to build a FSM to track the state of the game. Your finite state machine should take two 1-bit data inputs ('a' and 'b') which correspond to the numbers submitted by each player. When either of the players wins, your FSM should output a 1 on the winner's output signal (i. e, A-1 if player A wins, B-1 if player B wins) and remain in that win state for the rest of time.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
You know the right answer?
Matching-Opponent is a simple two-player game where players simultaneously submit a number. In each...
Questions
question
Mathematics, 09.04.2020 00:29
question
Mathematics, 09.04.2020 00:29
question
Mathematics, 09.04.2020 00:29
question
English, 09.04.2020 00:29
Questions on the website: 13722363