Assume Red has scored a goal and Yellow has to kick off, but Red's players are arrayed so Yellow has no legal move. Some things that could be done:
A. Do nothing. Yellow must resign or time out.
B. Change the code to make sure Yellow gets a die roll that allows a legal move.
C. Forbid Red from moving his players such that for at least one of the possible die rolls, Yellow would have no legal move.
D. Forbid Red from occupying more than one of the four squares of Yellow's goal area. Red could still run to and kick a ball in Yellow's goal area, but the kicker would bounce out if there were already another Red player in Yellow's goal area, much like Red already bounces out when he runs to one of Yellow's two goal squares and kicks the ball.
E. Forbid Red from having four or more players in consecutive horizontal squares.
F. What other possibilities am I not thinking of?
Each of the above would also apply with "Red" and "Yellow" interchanged.
I don't like A, because it makes the game a poorer emulation of soccer. This situation seems to me like it needs another "anti-killjoy" rule.
I don't like B, because it means Yellow is going to have a terrible time getting the ball to where Red isn't immediately likely to score another goal. Red has found a way to make sure Yellow rolls a 2 or 3 on the post-goal kickoff. Once in this situation, Yellow couldn't bring in a non-goalie to act as a relay as long as Red is scoring goal after goal.
C is not bad, but it requires Richard's software to do a one-ply lookahead, and raises the problem of coaches not understanding why particular moves are forbidden.
D does fix the problem, right?
<br/>x......x
<br/>x.RR...x
<br/>x.R.RR.x
<br/>x..Y...x
<br/>xxxxxxxx
Yellow has legal kickoffs on all die rolls 2-6.
D and E have the side effect that some games already played would now contain illegal moves.