Playing With Prolog - Train Consists
Channel: Playing With Prolog
Date: 2020-08-20

Poor Lars is having trouble arranging cars in his trains.  Annie helps him out using constraint programming


The program is available as an interactive SWISH notebook here:
https://swish.swi-prolog.org/p/pwp_trainconsists.swinb