예제 #1
0
 public void WhenPlayerTellsTheHostToReveal(string playerName, string cardName)
 {
     var client = _clients.Single(c => c.PlayerName == playerName);
     var gameState = _gameHost.GetGameState(client);
     var cardId = gameState.Hand.First(p => p.Name == cardName).Id;
     var message = new SelectCardsMessage(client.PlayerId, new[] { cardId });
     _gameHost.AcceptMessage(message);
 }
예제 #2
0
 public ActionResult SelectCards(Guid[] ids)
 {
     var message = new SelectCardsMessage(Client.PlayerId, ids);
     Client.AcceptMessage(message);
     return new EmptyResult();
 }