static void Main(string[] args) { ILoad load = new LoadFromTxt(); List <List <char> > test = new List <List <char> >(); Map t = new Map(); ILoad obj = new LoadFromTxt(); IEnumerable x = obj.Load(@"C:\Users\Utilisateur\Desktop\sokoban-maps-master\maps\sokoban-maps-60-plain.txt", 5); foreach (List <char> elem in x) { Console.WriteLine(elem.ToArray()); } Console.Read(); }
static void Main(string[] args) { string path = Ressource.Files; string cd = Directory.GetCurrentDirectory(); DirectoryInfo di = new DirectoryInfo(cd); di = di.Parent.Parent.Parent.Parent; ILoad obj = new LoadFromTxt(); Map obje = new Map(); obje = obje.GetMapInit(di + "\\" + path, 1); Application.Run(new AffichageGraphique(obje, 1)); /*IAfficher afficher = new AffichageConsole(); * while (true) * { * afficher.Afficher(obje); * obje = Map.OnMove(obje); * }*/ }
public List <List <char> > Load(string path, int level) { ILoad obj = new LoadFromTxt(); return(obj.Load(path, level)); }