Example #1
0
 public MainForm()
 {
     InitializeComponent();
     // Initialisation des paramètres internes du Form
     _resultForm            = new ResultForm();
     _fileName              = "";
     _loadForm              = new LoadForm();
     _loadForm.FormClosing += (s, e) => LoadForm_Close(s, e);
     // Défini la taille, 3x3 par défault
     _selectedSize = 3;
     ButtonSetFocus(sizeButton3);
     // Define Heuristic
     _selectedHeuristic = new Manhattan();
     ButtonSetFocus(heuristicThreeButton);
     // Define Solver
     _solver = new AstarUni(_selectedHeuristic);
     ButtonSetFocus(AstarUniButton);
     taquin = new Taquin(_selectedSize);
     //Debug.WriteLine(taquin);
     SetBoard();
 }