コード例 #1
0
 /// <summary>
 /// This method draws the game field.
 /// </summary>
 /// <param name="outputWriter"></param>
 public void DrawField(IOutputWriter outputWriter)
 {
     outputWriter.ChangeСolorYellow();
     outputWriter.Write(" -------------");
     outputWriter.Write(string.Format(" | {0} | {1} | {2} |", PlayingFieldsArrayTransformed[0], PlayingFieldsArrayTransformed[1], PlayingFieldsArrayTransformed[2]));
     outputWriter.Write(" ----+---+----");
     outputWriter.Write(string.Format(" | {0} | {1} | {2} |", PlayingFieldsArrayTransformed[3], PlayingFieldsArrayTransformed[4], PlayingFieldsArrayTransformed[5]));
     outputWriter.Write(" ----+---+----");
     outputWriter.Write(string.Format(" | {0} | {1} | {2} |", PlayingFieldsArrayTransformed[6], PlayingFieldsArrayTransformed[7], PlayingFieldsArrayTransformed[8]));
     outputWriter.Write(" -------------");
     outputWriter.ChangeСolorWhite();
 }