Class BasicLogicPascal

java.lang.Object
org.jacop.examples.fd.ExampleFD
org.jacop.examples.fd.BasicLogicPascal

public class BasicLogicPascal extends ExampleFD
It solves an arithmetic puzzle BASIC+LOGIC=PASCAL.
Version:
4.8

Find for the equation on the left what digits are represented by the letters different letters represent different digits

BASIC 9567 +LOGIC=======> +1085 PASCAL 10652

  • Constructor Details

    • BasicLogicPascal

      public BasicLogicPascal()
  • Method Details

    • 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(String[] args)
      It executes the program to solve this puzzle.
      Parameters:
      args - no arguments are read.