Esempio n. 1
0
        public Board(Player player, int extent, BikeList bikes)
        {
            this.Player     = player;
            this.TileExtent = extent;
            this.Bikes      = bikes;

            Setup();
        }
Esempio n. 2
0
        private static BikeList GenerateBikes()
        {
            var bikes = new BikeList();
            var rnd   = new Random();

            for (int i = 0; i < 5; i++)
            {
                bikes.Add(new Bike(rnd.Next(0, _boardExtent), rnd.Next(0, _boardExtent)));
            }

            return(bikes);
        }