There are multiple identical blocks of code interspersed throughout %chess which manually compute the @p of the ship whose turn it is. At the very least, this should be made into a library function, and ideally this should just be a part of the active-game-state.
There are multiple identical blocks of code interspersed throughout
%chess
which manually compute the@p
of the ship whose turn it is. At the very least, this should be made into a library function, and ideally this should just be a part of theactive-game-state
.