示例#1
0
 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,
                };
 }
示例#2
0
 private void GenerateMove(Game game)
 {
     ReadOnlyCollection<IPlayerMoveForUpdate> moves = game.GenerateAllMoves();
     int index = RandomGenerator.Next(moves.Count);
     _actualMove = moves[index];
 }