Пример #1
0
        /// <summary>
        /// Ход влево
        /// </summary>
        public void MoveLeft()
        {
            if (figure.CanMoveLeft())
            {
                MyGraphics.EraseFigure(figure, form.splitContainer1.Panel2);
                figure.MoveLeft();
                MyGraphics.DrawCells(neighborsList, form.splitContainer1.Panel2);
                MyGraphics.DrawFigure(figure, form.splitContainer1.Panel2);

                neighborsList = figure.CheckNeighboringCells();
            }
        }