示例#1
0
 public GameForm(int i_BoardSize, GameEngien.eGameMode i_GameSetting)
 {
     InitializeComponent();
     m_FormSize      = (r_ButtonSize * i_BoardSize) + 20;
     m_buttons       = new Button[i_BoardSize, i_BoardSize];
     this.ClientSize = new System.Drawing.Size(m_FormSize, m_FormSize);
     setButtoms(i_BoardSize);
     m_BoardSize            = (GameBoard.eBoardDemantions)i_BoardSize;
     m_GameMode             = i_GameSetting;
     m_GameEngien           = new GameEngien(m_GameMode, m_BoardSize);
     m_GameEngien.Flip     += buttonFlip;
     m_GameEngien.Set      += buttonSet;
     m_GameEngien.GameOver += gameOver;
     makeFirstLayout();
     m_GameEngien.ShowOptions();
     this.Text = "Othello - Yellow's turn";
 }
示例#2
0
        public static void Main()
        {
            GameEngien game = new GameEngien();

            game.StartGame();
        }