示例#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)
                {
                }
            }
        }
示例#2
0
        private Models.Messages.DealResponse NewDeal(Guid handId)
        {
            var hand = HandRepo.Find(handId);

            if (hand != null)
            {
                var response = new Models.Messages.DealResponse()
                {
                    Deck = hand.Deck
                };

                return(response);
            }
            else
            {
                throw new ArgumentException();
            }
        }
示例#3
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();
                    }
                }
            }
        }
示例#4
0
 public IEnumerable <BitPoker.Models.Hand> Get(string id)
 {
     return(HandRepo.All().Where(h => h.TableId.ToString() == id));
 }
示例#5
0
 public IEnumerable <BitPoker.Models.Hand> Get()
 {
     return(HandRepo.All().Take(MaxRows));
 }