The state set is {-, F, B, C, R, L, X, Y, Z, x, y, z, a}, the quiescent state is -, the excited state is C, and the firing state is F.

The transition function is listed below, in the form of a sequence of lines, each of which contains the previous state of the machine on the left, our previous state, the previous state of the machine on the right, and our next state, in that order. ? denotes any state. If two lines conflict, use the line which comes first in the sequence. Soldiers at the end should pretend they have a neighbor in state B beyond the end.

B B B F C B B F B C B F C C B F B B C F C B C F B C C F C C C F ? C ? B ? B ? B B - B B C - B B B - C B C - C B C - - a - - C a R - Z C ? R Y C R Y ? C z - L C y L ? C ? y L C B L ? R ? R B L ? - L L R - ? R - a B X B a - x ? - a L a - ? R ? X ? Y ? Y ? Z ? x ? y ? y ? z ? - Z X z - ? x ? ? ? -

Back to the firing squad solution page

David Moews ( dmoews@fastmail.fm )

Last significant update 20-IX-2004