Changeset 4438 for trunk/examples

Show
Ignore:
Timestamp:
08/20/08 00:16:53 (5 months ago)
Author:
pmoura
Message:

Minor updates to the SWI-Prolog and Yap constraint examples.

Location:
trunk/examples/constraints
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/examples/constraints/swipl/loader.lgt

    r4415 r4438  
    11 
    22:- initialization(( 
    3     use_module(library(clpfd)), 
    4     use_module(library(lists)), 
     3    ensure_loaded(library(clpfd)), 
     4    ensure_loaded(library(lists)), 
    55    logtalk_load(library(types_loader)), 
    66    logtalk_load(library(metapredicates_loader)), 
  • trunk/examples/constraints/yap/hexagon.lgt

    r4418 r4438  
     1 
     2% code adapted to Logtalk by Paulo Moura from one of the CLP(FD) examples 
     3% written by Markus Triska (August 2008) 
     4 
     5 
    16% Written 2006 by Markus Triska triska@gmx.at 
    27% Public domain code. 
  • trunk/examples/constraints/yap/loader.lgt

    r4418 r4438  
    11 
    22:- initialization(( 
    3     use_module(library(clpfd)), 
     3    ensure_loaded(library(clpfd)), 
    44    logtalk_load(library(metapredicates_loader)), 
    55    logtalk_load([hexagon, queens, puzzle, sudoku]))). 
  • trunk/examples/constraints/yap/puzzle.lgt

    r4415 r4438  
    11 
    2 % code adapted from one of the examples distributed with the CLP(FD) library 
     2% code adapted to Logtalk by Paulo Moura from one of the CLP(FD) examples 
     3% written by Markus Triska (August 2008) 
     4 
    35 
    46:- object(puzzle). 
  • trunk/examples/constraints/yap/queens.lgt

    r4421 r4438  
     1 
     2% code adapted to Logtalk by Paulo Moura from one of the CLP(FD) examples 
     3% written by Markus Triska (August 2008) 
     4 
     5 
    16/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    27   N Queens animation demo. 
  • trunk/examples/constraints/yap/sudoku.lgt

    r4421 r4438  
     1 
     2% code adapted to Logtalk by Paulo Moura from one of the CLP(FD) examples 
     3% written by Markus Triska (August 2008) 
     4 
     5 
    16/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    27   Sudoku CLP(FD) animation.