Example #1
0
        public void Init(List <string> categoryhashes, MongoRepository repo, int count = 0)
        {
            r         = new Random();
            _repo     = repo;
            gamewords = new List <WordModel>();

            IEnumerable <WordModel> tmparray = new WordModel[0];

            foreach (string item in categoryhashes)
            {
                var coll = repo.GetCollection(item);
                tmparray = tmparray.Concat(coll.ToArray());
            }
            MixandPrepare(tmparray.ToArray(), gamewords, count);
        }