I'm running into a standard problem as a newbie to Scala: How do I define two classes in such a way that I can make an instance of one that the other as member variable, which in turn points back to the first instance?
I would like to end up with an instance of Game which has a member of type Dealer which has a member of type Game, which is in fact the original Game instance
So in this case each instance (Game, Dealer) has a member which is the other instance. Can anyone guide me to the right way to to this?