Difference between revisions of "How would you increase the maximum size of a players hand"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
Line 6: Line 6:
 
             Dictionary<Char, int> TileDictionary = new Dictionary<char, int>();
 
             Dictionary<Char, int> TileDictionary = new Dictionary<char, int>();
 
             int MaxHandSize = 20;
 
             int MaxHandSize = 20;
 +
  </syntaxhighlight>
 +
 +
For example you could change it to 25:
 +
 +
<syntaxhighlight lang="C#">
 +
static void Main(string[] args)
 +
        {
 +
            List<String> AllowedWords = new List<string>();
 +
            Dictionary<Char, int> TileDictionary = new Dictionary<char, int>();
 +
            int MaxHandSize = 25;
 
   </syntaxhighlight>
 
   </syntaxhighlight>

Revision as of 13:33, 14 November 2017

You would increase the value for the integer MaxHandSize.

 static void Main(string[] args)
        {
            List<String> AllowedWords = new List<string>();
            Dictionary<Char, int> TileDictionary = new Dictionary<char, int>();
            int MaxHandSize = 20;

For example you could change it to 25:

 static void Main(string[] args)
        {
            List<String> AllowedWords = new List<string>();
            Dictionary<Char, int> TileDictionary = new Dictionary<char, int>();
            int MaxHandSize = 25;