Ok, think I'm understanding you. So say for instance I receive a binary
value of 216 = 11011000, so I cut of the last 2 0's Which makes the binary
value now 110110 which equals 54 in decimal. Which according to
packetpoker.py is not correct as the highest card goes to 51? Or am
completely misunderstanding? Please advise.

 

Warm regards,

 

Michael

 

 

 

 

-----Original Message-----

From: Loic Dachary [mailto:[EMAIL PROTECTED]

Sent: Wednesday, July 04, 2007 1:17 PM

To: Michael Oschmann

Cc: [email protected]

Subject: Re: [Pokersource-users] Poker Cards

 

"Michael Oschmann" <[EMAIL PROTECTED]> writes:

 

>    Hi Loic,

> 

> 

>    When a user starts playing they receive packetpokerPlayerCards with

>    their cards (if the serial matches). But from what I can see in my

>    client logs, serial 88 receives cards: 216 & 228.

> 

>    But when PacketPokerBoardCards gets sent (and serial 88 has won the

>    game) is displays his cards as 24 & 36? Is this because serial 88's

>    cards were dealt face down  :- as in pokerpackets.py

 

     Yes.

 

>    {cards: list of integers describing cards.

> 

>           255 == placeholder, i.e. down card with unknown value

> 

>           bit 7 and bit 8 set == down card

> 

>           bit 7 and bit 8 not set == up card

> 

>           bits 1 to 6 == card value as follows:}

> 

> 

>    I'm not fully understanding the concept of the displaying of cards.

>    Could you perhaps give me a few examples? Does the client have to send

>    a packet to look at his cards? (or infer a packet?)

 

     When a card has bit 8 set, you know the card must be displayed face
down. Otherwise it means everyone sees the card. I'm not sure to understand
what's the problem here.

 

     Cheers,

 

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to