chiark / gitweb /
currency: Abolish min_unit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 15:23:47 +0000 (16:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 15:31:05 +0000 (16:31 +0100)
commit0b2df958d4c49fc979efa9da192f292806538079
treead351ce72640c2ea72f05d9f2b83169e41263194
parentb210082d08d1141455057f5c3a835910b271b78b
currency: Abolish min_unit

We can instead just rely on the players to Not Do That, or to tell
each other off.  It's easy to recover from, too: just move money until
the amounts are right.

This also avoids any question of what to do if people try to combine
banknotes with the same currency but different min_qty.  (GCD?)

Suggested-by: Gareth Taylor
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/currency.rs