예제 #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);
     }
 }