Exemple #1
0
        private GameManager m_GameManager = null; // reference to the GameManager in order to make player moves.

        #endregion Fields

        #region Constructors

        public GameForm(int i_BoardDimension, GameManager i_GameManager)
        {
            m_GameManager = i_GameManager;
            r_BoardDimension = i_BoardDimension;
            generateButtonMatrix();
            int formSize = ((k_ButtonSize + k_ButtonSpacing) * r_BoardDimension) + k_ButtonSpacing;
            this.ClientSize = new Size(formSize, formSize);
            this.StartPosition = FormStartPosition.CenterScreen;
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.Text = "Othello";
        }
Exemple #2
0
 public static void Main()
 {
     GameManager newGame = new GameManager();
     newGame.InitGame();
 }