public static List<IPlayer> BuildPlayers(List<string> names) { List<IPlayer> players = new List<IPlayer>(); Random random = new Random(); foreach (string name in names) { IPlayer player = new Player.Player(new GoLocation()); player.Name = name; players.Add(player); } return players.OrderBy(x => Guid.NewGuid()).ToList(); }
public void Init() { mocker = AutoMock.GetLoose(); banker = mocker.Create<Banker>(); player = mocker.Create<Player>(); }