private void SetOptionsTwoMan() { SetPlayerName p_name1 = new SetPlayerName(); p_name1.ShowDialog(); player1 = new Player(p_name1.GetName(), 'X'); SetPlayerName p_name2 = new SetPlayerName(); p_name2.ShowDialog(); player2 = new Player(p_name2.GetName(), 'O'); }
private void SetOptionsOneMan() { Random rand = new Random(); int move = rand.Next() % 2; if (move == 0) { SetPlayerName p_name = new SetPlayerName(); p_name.ShowDialog(); player1 = new Player(p_name.GetName(), 'X'); player2 = new Bot("Bot", 'O'); } else { SetPlayerName p_name = new SetPlayerName(); p_name.ShowDialog(); player2 = new Player(p_name.GetName(), 'X'); player1 = new Bot("Bot", 'O'); } }