Ejemplo n.º 1
0
        public void Post(BitPoker.Models.Messages.ActionMessage message)
        {
            if (base.Verify(message) == true)
            {
                Models.Hand hand = HandRepo.All().Single(h => h.Id.ToString() == message.HandId.ToString());

                if (hand != null)
                {
                }
            }
        }
Ejemplo n.º 2
0
        public void Post(BitPoker.Models.Messages.ActionMessage message)
        {
            if (base.Verify(message) == true)
            {
                Models.Hand hand = HandRepo.All().Single(h => h.Id.ToString() == message.HandId.ToString());

                if (hand != null)
                {
                    BitPoker.Models.Players.IPlayerLogic player1 = new BitPoker.Models.TexasHoldemPlayer();
                    BitPoker.Models.Players.IPlayerLogic player2 = new BitPoker.Models.TexasHoldemPlayer();

                    BitPoker.Logic.GameMechanics.TwoPlayersTexasHoldemGame holdem = new BitPoker.Logic.GameMechanics.TwoPlayersTexasHoldemGame(player1, player2);

                    if (hand != null)
                    {
                        //BitPoker.Models.Players.IPlayer player1 = new
                        //BitPoker.Logic.GameMechanics.TwoPlayersTexasHoldemGame holdem = new BitPoker.Logic.GameMechanics.TwoPlayersTexasHoldemGame();
                    }
                }
            }
        }
Ejemplo n.º 3
0
 public IEnumerable <BitPoker.Models.Hand> Get(string id)
 {
     return(HandRepo.All().Where(h => h.TableId.ToString() == id));
 }
Ejemplo n.º 4
0
 public IEnumerable <BitPoker.Models.Hand> Get()
 {
     return(HandRepo.All().Take(MaxRows));
 }