Example #1
0
 public OthelloGameForm(GameManager.eGameModes i_Gamemode, int i_BoardSize)
 {
     Application.EnableVisualStyles();
     InitializeComponent();
     m_OthelloGame = new GameManager(i_BoardSize, i_Gamemode);
     m_OthelloGame.GameBoard.CoinAdded   += coinAdded;
     m_OthelloGame.GameBoard.CoinFlipped += coinFlipped;
     m_OthelloGame.SkipTurn += skipTurn;
     m_OthelloGame.PossibilitiesCellAdded += showPossibilites;
     initializeUIBoard(m_OthelloGame.GameBoard.Size);
     m_OthelloGame.InitializeBoard();
     this.Text = string.Format("Otehllo - {0}'s Turn", m_OthelloGame.CurrentPlayerTurn.PlayerColorOfCoin);
     handleNewTurn(m_OthelloGame.CurrentPlayerTurn);
 }
Example #2
0
 private void AgainstPlayerButton_Click(object sender, EventArgs e)
 {
     this.DialogResult = DialogResult.OK;
     m_GameMode        = GameManager.eGameModes.HumanVsHuman;
     this.Close();
 }