public void Start(Game game) { this.game = game; FirstTurn firstturn = new FirstTurn(); this.NewState = firstturn; NewState.Enter(this); }
private void btnStart_Click(object sender, EventArgs e) { //TODO: Add playername creator. List<string> playernames = new List<string>(); playernames.Add("Player 1"); for (int x = 0; x < this.numplayers; x++) { playernames.Add("Player" + (x + 1).ToString()); } Game newGame = new Game(numplayers, difficulty, playernames); newGame.NewGame(); }