コード例 #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);
 }
コード例 #2
0
 /// <summary> Turns used tiles to holes and clears word. </summary>
 public void FinishTurn()
 {
     GameBoard.ConvertTilesToHoles(ThePath.ToList());
     ClearWord();
 }
コード例 #3
0
 /// <summary> Clears ThePath, thereby clearing the textblock and the gameboard. </summary>
 public void ClearWord()
 {
     ThePath.Clear();
 }