Beispiel #1
0
 /// <summary>
 /// Reads content of .txt's.
 /// </summary>
 public static void Init()
 {
     ThePath = Directory.GetCurrentDirectory();
     ThePath = ThePath.Remove(ThePath.Length - 23);
     ThePath = Path.Combine(ThePath, ".\\Pliki");
     Console.WriteLine(File.ReadAllText(Path.Combine(ThePath, ".\\welcome.txt")));
     ExpList = File.ReadAllText(Path.Combine(ThePath, ".\\test.txt")).Split(Environment.NewLine);
 }
 /// <summary> Turns used tiles to holes and clears word. </summary>
 public void FinishTurn()
 {
     GameBoard.ConvertTilesToHoles(ThePath.ToList());
     ClearWord();
 }
 /// <summary> Clears ThePath, thereby clearing the textblock and the gameboard. </summary>
 public void ClearWord()
 {
     ThePath.Clear();
 }