Exemple #1
0
        public void RemoveChessman(Chessman chessman)
        {
            var figures = chessman.GetColor() == Color.White ? _whiteFigures : _blackFigures;

            if (!figures.Remove(chessman))
            {
                throw new RemoveChessmanException($"{chessman.GetColor()} {typeof(Chessman)} not found on the board");
            }
        }