Exemplo n.º 1
0
        static void Main()
        {
            var game = new Game();
            game.Start();

            Console.WriteLine("\r\n" +
                              "\tEnd");
            Console.ReadLine();
        }
Exemplo n.º 2
0
 public static Direction NextDirection(Game2048.Game game)
 {
     if (game.IsUpAvailbe())
     {
         return(Direction.Up);
     }
     else if (game.IsLeftAvailable())
     {
         return(Direction.Left);
     }
     else if (game.IsDownAvailable())
     {
         return(Direction.Down);
     }
     else
     {
         return(Direction.Right);
     }
 }