Gateways


next up previous
Next: Using not to find the cheapest goods
Up: Traveller
Previous: Some arithmetic
Back: to main list of student notes

Gateways

I have written the code of a more intelligent trader. One of the predicates in it is gateway(Region,Square). This is true if Square is a gateway to Region; that is, if Square is inside Region, but also connects to a square that is outside it. What is wrong with the definition below?


next up previous
Next: Using not to find the cheapest goods
Up: Traveller
Previous: Some arithmetic
Back: to main list of student notes



Jocelyn Paine
Tue Jun 4 18:14:46 BST 1996