LilasCorner / jlootbox

Other
1 stars 0 forks source link

Consider making decisionStrat an instance variable of Player instead of static #5

Open JohnTMurphy-NIU opened 2 years ago

JohnTMurphy-NIU commented 2 years ago

Currently decisionStrat is a static variable, and this implies all players are using the same strategy. It may be that this is the simplest way to produce the initial version of the code and is a good simplifying assumption for all the tests that we envision. However, if it's simple to do, consider making the strategy an instance variable instead. This means each instance of a Player could have its own strategy, which also allows strategies to change through time and/or be communicated or copied. An agent in a population of other agents may base its own odds of success off of its observations of other's outcomes, and not realize that its own strategy is different from theirs.