public bool GetPieceHitList(MovePath path, bool isSplitStomp, ref List <BoardPiece> hitList) { BoardPosition pos; BoardPiece victim; // Eat everything in the path V--V if (isSplitStomp) { path.Reset(); while (path.GetNext(out pos)) { if (_board.IsPositionOccupied(pos, out victim)) { hitList.Add(victim); } } } else // Only eat last victim in path V--V { pos = path.end; if (_board.IsPositionOccupied(pos, out victim)) { hitList.Add(victim); } } return(hitList.Count > 0); }