public GameManager(string i_FirstName, string i_SecondName, Player.eStateOfPlayer i_SecondPlayerState, int i_sizeOfBoard) { r_PlayersArray = new Player[k_NumOfPlayers] { new Player(i_FirstName, Coin.eCoinColor.White, Player.eStateOfPlayer.Human), new Player(i_SecondName, Coin.eCoinColor.Black, i_SecondPlayerState) }; m_CurrentTurn = r_PlayersArray[0]; r_BoardMatrix = new BoardGame(i_sizeOfBoard); }
private void startButton_Click(object sender, EventArgs e) { if (sender == PlayerButton) { StateOfSecondPlayer = Player.eStateOfPlayer.Human; } else { StateOfSecondPlayer = Player.eStateOfPlayer.Computer; } this.Hide(); this.Close(); }
public void SetTheGame(object sender, EventArgs e) { m_StateOfSecondPlayer = GameSettingsWindow.StateOfSecondPlayer; m_SizeOfBoard = GameSettingsWindow.SizeOfBoard; startGame(); }