Itangalo / Bot-Playtesting-Toolkit

A toolkit for simulating board games with Google spreadsheets. Intended use is board game development.
GNU General Public License v3.0
9 stars 1 forks source link

Add agents to most market method arguments #21

Closed Itangalo closed 2 years ago

Itangalo commented 2 years ago

Buying, checking availability, etc, should take an agent as argument -- not only resources.

I think. This would also mean that the market method updates the resources for the agent -- but should the changes be tracked or not? (Have a setting on the market for this, and allow both?)

Itangalo commented 2 years ago

The reason for having an agent as argument is that some code otherwise would be duplicated a lot of times. And agents should nearly always be passed to goods resolvers.

Itangalo commented 2 years ago

Done.