Package kakuro.table

Examples of kakuro.table.Position


   * @return jó-e a szó
   * */
  private boolean checkHorizontal(Position p) throws TableException {
        int sum = getSum(p, ITable.SUM_HORIZONTAL);
        for (int i=p.x+1; i<_matrix.length; i++) {
              int type = getType(new Position(i, p.y));
              if (type!=ITable.WHITE) break;
              int value = readCell(new Position(i, p.y), ITable.VALUE_NORMAL);
              if (value<1) return false;
              sum -= value;
        }
        return sum==0;
  }
View Full Code Here

TOP

Related Classes of kakuro.table.Position

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.