static void Main() { var game = new Game(); game.Start(); Console.WriteLine("\r\n" + "\tEnd"); Console.ReadLine(); }
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); } }