示例#1
0
文件: Program.cs 项目: kolinlob/2048
        static void Main()
        {
            var game = new Game();
            game.Start();

            Console.WriteLine("\r\n" +
                              "\tEnd");
            Console.ReadLine();
        }
示例#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);
     }
 }