Example #1
0
 public void JoinGame(BlackjackGame game)
 {
     if (this.Game == null)
     {
         this.Game = game;
     }
     else
     {
         throw new Exception("Player cannot join a new game before leaving previous game.");
     }
 }
Example #2
0
 public void LeaveGame()
 {
     this.Game = null;
 }