Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public void Init()
 {
     mocker = AutoMock.GetLoose();
     banker = mocker.Create<Banker>();
     player = mocker.Create<Player>();
 }