Package principal

Source Code of principal.SudokuPrincipal

package principal;

import controllers.SudokuController;
import models.Configuration;
import models.Partida;
import view.MainView;

/**
* Clase Sudoku Principal
* En esta clase se inicializan la configuracion
* la partida y la vista principal del juego
*/
public class SudokuPrincipal {

    public static void main(String[] args) {
        /*Partida y configuracion*/
        Configuration config  = new Configuration();
        Partida modelo = new Partida(config);
        /*Controlador Unico*/
        SudokuController.createInstance(modelo);       
        SudokuController controller = SudokuController.getInstance();       
        /*Vista unica*/
        MainView vista = new MainView();       
        controller.setView(vista);
    }
}
TOP

Related Classes of principal.SudokuPrincipal

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.