private void Turn() { while (this.state == GameState.InPlay) { foreach (PlayerSelect pl in players) { PlayerSelect personalTurn = players[(playerTurn)]; Utilities.ColorChange(pl.GetName, pl.GetColor); Console.WriteLine(); Utilities.DieThrower(); ShowTknOptions(personalTurn.GetTokens()); ChangeTurns(); } } }
private void CreatePlayers() //allows the players to be made. { players = new PlayerSelect[this.numberOfPlayers]; //Creates "PlayerSelect" or "Players" for however many players were needed. Console.Clear(); for (int i = 0; i < this.numberOfPlayers; i++) { Console.WriteLine("What is the name of Player {0}: ", (i + 1)); string name = Console.ReadLine(); Utilities.Clear(1000); Token[] tokens = Utilities.DesignatedTkn(i); players[i] = new PlayerSelect(name, (i + 1), tokens); } }