A solicitação
“Draw a straight pool state diagram with open and ball-in-hand states for players A and B, transitions for called pockets, misses and fouls, and a final win when a player reaches 150 points.”
Depois, tenteChange the winning score from 150 to 100.Add a separate break state before player A opens.
O que há neste desenho
Entenda as decisões por trás dele.
01
Miss and foul transitions switch players
02
Ball-in-hand state following a foul
03
Pocketing the called ball continues the turn unless the winning score is reached
04
Winning condition triggers an accepting final state
Verifying game logic or teaching automata theory with a real-world example.