Esempio n. 1
0
 public static Turtle Instance(Point position)
 {
     return(_turtle ?? (_turtle = new Turtle(position)));
 }
Esempio n. 2
0
 public static void Print(EscapeMines.Library.Models.Turtle turtle)
 {
     Console.WriteLine(startString.Replace("{x}", turtle.Position.X.ToString()).Replace("{y}", turtle.Position.Y.ToString()).Replace("{dir}", turtle.Direction.ToString()));
     Console.WriteLine(new string('-', 50));
 }