internal static TurnInfo Create(Game game, IPlayerMoveForUpdate move) { return new TurnInfo { Move = move, AllMoves = game.GenerateAllMoves(), MostFailedStartUps = game.MostFailedStartUps, MostInternetLinks = game.LongestInternetLink, Hash = game.Hash, CurrentUnversityLongestLink = game.CurrentUniversity.LengthOfLongestLink, }; }
private void GenerateMove(Game game) { ReadOnlyCollection<IPlayerMoveForUpdate> moves = game.GenerateAllMoves(); int index = RandomGenerator.Next(moves.Count); _actualMove = moves[index]; }