Exemplo n.º 1
0
 public Response AddSet(List <PieceModel> set, string playerName)
 {
     var(response, game) = _rummyEngine.AddSet(Game, set, playerName);
     Game = game;
     OnDropSetOnTable.Invoke();
     return(response);
 }
Exemplo n.º 2
0
 public Response AddPieceToSet(int setIndex, string setPlayerName, bool right,
                               PieceModel piece, string playerName)
 {
     var(response, game) = _rummyEngine.AddPieceToSet(Game, setIndex, setPlayerName, right, piece, playerName);
     Game = game;
     OnDropSetOnTable.Invoke();
     return(response);
 }