예제 #1
0
파일: Game.cs 프로젝트: dmdiehr/Scrabble
        /// <summary>
        /// Should eventually implement alternate board sizes, board types, and dictionaries and/or languages
        /// </summary>
        public Game(Tray tray, List <Tuple <Space, Tile> > startingBoard = null)
        {
            _tray = tray;
            EmptyBoard();
            ScrabbleMultipliers();

            if (startingBoard != null)
            {
                SetBoard(startingBoard);
            }

            _dictionary = File.ReadAllText("C:\\Users\\David\\Desktop\\Code\\C#-VS\\Scrabble\\Scrabble\\Dictionary\\dictionary.txt").Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
        }
예제 #2
0
파일: Game.cs 프로젝트: dmdiehr/Scrabble
 public Game(string tray = "abcdefg", List <Tuple <Space, Tile> > startingBoard = null)
 {
     EmptyBoard();
     ScrabbleMultipliers();
     _tray = new Tray(tray);
     try
     {
         _dictionary = File.ReadAllText("C:\\Users\\David\\Desktop\\Code\\C#-VS\\Scrabble\\Scrabble\\Dictionary\\dictionary.txt").Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
     }
     catch (Exception)
     {
         Console.WriteLine("**********Something is up with your Dictionary file*******");
         _dictionary = new string[] { "this", "is", "just", "a", "test" };
     }
 }
예제 #3
0
파일: Game.cs 프로젝트: dmdiehr/Scrabble
 public void SetTray(string tray)
 {
     _tray = new Tray(tray);
 }
예제 #4
0
파일: Game.cs 프로젝트: dmdiehr/Scrabble
 public void SetTray(Tray tray)
 {
     _tray = tray;
 }