Finite state machines also play important roles in software design, including di
ID: 3602848 • Letter: F
Question
Finite state machines also play important roles in software design, including digital control system implementation and event-driven software design (most web services, user interfaces, and a growing number of games are designed in this way) as well as parts of compilers. In this problem, you will draw a state transition diagram corresponding to an adventure game. In the game, each “room” is a state, and the input values (0, 1, or 2 for our game) correspond to transitions. Download the program dungeon.c from our class’ web page, play the game, analyze the code, and draw a state transition diagram. Use the room number from the code to label the states, and the input value (0, 1, or 2) to label transitions between states. Note that the game ends in some of the rooms, so your diagram should not have transition arcs leaving these states.
Code:
Explanation / Answer
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.