예제 #1
0
        private Tile getTileByLocation(CheckersCoordinates i_Coordinates)
        {
            byte rowIndex = CheckersBoard.GetRowIndexByLetter(i_Coordinates.Row);
            byte colIndex = CheckersBoard.GetColumnIndexByLetter(i_Coordinates.Column);

            return(m_Tiles[rowIndex, colIndex]);
        }
예제 #2
0
        private void soldiers_SoldierRemoved(CheckersCoordinates i_Coordinates)
        {
            byte rowIndex = CheckersBoard.GetRowIndexByLetter(i_Coordinates.Row);
            byte colIndex = CheckersBoard.GetColumnIndexByLetter(i_Coordinates.Column);

            // Removing the soldier button from the board.
            m_FormGame.Controls.Remove(m_Tiles[rowIndex, colIndex].ButtonSoldier);
            m_Tiles[rowIndex, colIndex].ButtonSoldier = null;
        }