Exemple #1
0
        public void InitializeBag(int maxTokens, Hashes.si_hash Letters, Hashes.ii_hash Values, Hashes.ii_hash Amount)
        {
            this.maxTokensInBag = maxTokens;
            this.tokenLetters   = Letters;
            this.tokenValues    = Values;
            this.tokenAmount    = Amount;

            /*
             * foreach (object v in Values)
             * {
             *
             * }
             */
        }
Exemple #2
0
 public void InitializeAndFill(int maxTokens, Hashes.si_hash Letters, Hashes.ii_hash Values, Hashes.ii_hash Amount)
 {
     InitializeBag(maxTokens, Letters, Values, Amount);
     FillBag();
 }