public Controller() { _MainBoard = new Maze(); //player = new Player(0, 0); _view = new MazeView(); _view.ClearMaze(); _view.CreateMaze(_MainBoard.Get()); _Keys = new Keys(); }
public void Process(string command, string[] args) { //Create Add model Maze model = new Maze(); var fetchgame = model.Load(id); MazeView _viewBoard = new MazeView(); _viewBoard.ClearMaze(); _viewBoard.CreateMaze(fetchgame); Controller controller = new Controller(); controller.Game(); }
public void Process(string command, string[] args) { //Create Add model Maze model = new Maze(); var listgames = model.ListGames(); MazeView _viewBoard = new MazeView(); _viewBoard.ClearMaze(); _viewBoard.ListAllGames(listgames); Controller controller = new Controller(); controller.Game(); }