Question: Map Coloring: Solve the map coloring problem for the following Hexagonal map. a . The top and bottom rows of hexagons should be sea tile.

Map Coloring: Solve the map coloring problem for the following Hexagonal map.
a.The top and bottom rows of hexagons should be sea tile.
b.The middle eight hexagons can be anything but sea.
c.No two towns can be adjacent.
d.Adjacency is when two hexagons share a side, e.g.0,0is adjacent to 1,0and 0,1
e.The only tile (tile~=color)that cannot be adjacent to another of the same type is town.
tile(town).tile (sea).tile (mountain).tile (forest).tile(desert).
--looking at map, the first four variables are S00,S10,S20,S30and the top four sea tiles.
solution(S00,S10,S20,S30,S01,S11,S21,S31,S02,S12,S22,S32,S03,S13,S23,S33):-(CODE IN PROLOG!!!)
Map Coloring: Solve the map coloring problem for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!