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

The divide between market and goods #29

Closed Itangalo closed 2 years ago

Itangalo commented 2 years ago

Which methods should belong to the Market class, and which to the Goods class?

Itangalo commented 2 years ago

Markets currently have the following relevant methods:

Not yet implemented:

One possible line between Market and Goods is that anything dealing with a single goods type belongs to the Goods class, the rest to the Market. Another is that anything that makes sense to come with the ownership of a goods belongs to the Goods class – making it easy to call from wherever the goods is transfered. I lean towards the latter – you go to the market to buy something, not to the goods. You ask the market how much sheep there is.

If so, all the current methods should be left on the Market, and only sell and resolve should be added to the resource. Let's try that.

Itangalo commented 2 years ago

Done.