def createSiteX(location: tuple): toxicScore = { "I": { "distance": 2, "score": -10 }, "C": { "distance": 2, "score": -20 }, "R": { "distance": 2, "score": -20 }, } build_on_cost = -np.inf # a huge number forcing not to build on newSite = Rules.Site(name="X", score=toxicScore, build_on_cost=build_on_cost, location=location) return newSite
def createSiteS(location: tuple): sceneryScore = { "I": { "distance": -1, "score": 0 }, "C": { "distance": -1, "score": 0 }, "R": { "distance": 2, "score": 10 }, } build_on_cost = 1 newSite = Rules.Site(name="S", score=sceneryScore, build_on_cost=build_on_cost, location=location) return newSite