SteamedPears / 3004-SevenWonders

Seven Wonders project for 3004
1 stars 1 forks source link

Let user pick different AI heuristics #161

Closed spratt closed 11 years ago

Gankra commented 11 years ago

I think the model might need some more APIs to properly expose this functionality to you, now that I think about it. Do you just want to be able to specify the Strategy/Heuristic all AIs use, or have control over each individual AI? If the former, then I can probably add two methods:

Player.setDefaultStrategy(Strategy); and HeuristicStrategy.setHeuristicMask(List);

spratt commented 11 years ago

Whatever is easier. The former sounds easier.

spratt commented 11 years ago

Did you go with the recommendation specified above?

Gankra commented 11 years ago

https://github.com/SteamedPears/3004-SevenWonders/blob/master/src/main/java/com/steamedpears/comp3004/models/players/Player.java#L73

spratt commented 11 years ago

k