Class Kakro


  • public class Kakro
    extends ExampleFD
    It is program to solve Kakro puzzles.
    Version:
    4.7

    This is a program which uses Constraint Programming to find the solution to a simple Kakro puzzle. For a moment the problem representation does not allow to model the problems with fields which are both origins of the row and column word.

    • Field Detail

      • elements

        public IntVar[][] elements
      • noRows

        public int noRows
      • noColumns

        public int noColumns
      • rowDescription

        int[][] rowDescription
      • columnDescription

        int[][] columnDescription
    • Constructor Detail

      • Kakro

        public Kakro()
    • Method Detail

      • model

        public void model()
        Description copied from class: ExampleFD
        It specifies a standard way of modeling the problem.
        Specified by:
        model in class ExampleFD
      • main

        public static void main​(java.lang.String[] args)
        It executes the program to solve simple Kakro puzzle.
        Parameters:
        args - no parameters