rafanoronha / scala-poker

Having fun while coding a brand new open source scala poker library
MIT License
21 stars 12 forks source link

mess of copies and references in the BettingRound class #25

Closed rafanoronha closed 10 years ago

rafanoronha commented 10 years ago

We managed to build an amazing mess of object copies and references across the behavior of the BettingRound class. Should we encapsulate the updated state of a given entity in a single place? Then all references should be by-name values pointing to there.

rafanoronha commented 10 years ago

looking forward to see any mutability's effects brought by behavior proposed in 7525ee2

rafanoronha commented 10 years ago

5a9074a leverages a more focused mutability through the StackManagement object we're in a better place to live now ;)