Package boardGenerator

Examples of boardGenerator.Pair


    public List<Pair<Integer,Integer>> verificarJugada() {
        List<Pair<Integer,Integer>> lista = new LinkedList<>();
        for(int i=0;i<9;i++){
            for(int j=0;j<9;j++){
                if( (board[i][j] != solution[i][j]) && (board[i][j] != 0)){
                    Pair<Integer,Integer> casilla = new Pair(i,j);
                    lista.add(casilla);                   
                }
            }
        }
        checks++;
View Full Code Here


        } while (board[i][j]==solution[i][j]);
        suggest++;
        pista = true;
        calcularPuntuacion();
        Pair<Pair<Integer,Integer>,Integer> tmp = new Pair<Pair<Integer,Integer>,Integer>();
        Pair<Integer,Integer> pos = new Pair(i,j);
        tmp.setFirst(pos);tmp.setSecond(solution[i][j])
        setChanged();
        notifyObservers(tmp);
    }
View Full Code Here

     * @param value
     */
    private void insert(Celda field, int value){
        field.setWrong(false);
        Pair<Pair<Integer,Integer>,Integer> tmp = new Pair<Pair<Integer,Integer>,Integer>();
        Pair<Integer,Integer> pos = new Pair(field.getFil(),field.getCol());
        tmp.setFirst(pos);tmp.setSecond(value);       
        setChanged();
        notifyObservers(tmp);    
    }
View Full Code Here

     * @param value
     */
    private void insert(Celda field, int value){
        field.setWrong(false);
        Pair<Pair<Integer,Integer>,Integer> tmp = new Pair<Pair<Integer,Integer>,Integer>();
        Pair<Integer,Integer> pos = new Pair(field.getFil(),field.getCol());
        tmp.setFirst(pos);tmp.setSecond(value);       
        setChanged();
        notifyObservers(tmp);    
    }
View Full Code Here

TOP

Related Classes of boardGenerator.Pair

Copyright © 2018 www.massapicom. 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.