Loic Dachary <[EMAIL PROTECTED]> writes:

>        Hi,
>
>        I'll add a new packet in the server to make it easier for poker
> clients to detect situations where all players are all-in and the cards
> are dealt to the end. I understand that in the current state of things
> the only option for a client is to store the packets and use some kind
> of timeout. This is clumsy at best.
>
>        If you can join me on IRC at irc.freenode.net on channel
> #pokersource, I'll be happy to discuss this with you.

  Here is the proposed packet. I'm unsure about the name though.
Looks weird.

########################################

class PacketPokerShowdownAhead(Packet):
    """\
Semantics: the game "game_id" will automatically go to showdown

Direction: client <=> client

Context: when all players are all-in, the board cards will be
dealt automatically. The POKER_SHOWDOWN_AHEAD packet is created
as soon as such a situation is detected. The client can chose
to behave differently, for instance to postpone the display of
the board cards until after the muck phase of the game.

game_id: integer uniquely identifying a game.
"""
    info = Packet.info + ( ( 'game_id', 0, 'I'), )

Packet.infoDeclare(globals(), PacketPokerShowdownAhead, Packet, 
"PACKET_POKER_SHOWDOWN_AHEAD", 208) # 0xd1 # %SEQ%


-- 
+33 1 76 60 72 81  Loic Dachary mailto:[EMAIL PROTECTED]
http://dachary.org/loic/gpg.txt sip:[EMAIL PROTECTED]
Latitude: 48.86962325498033 Longitude: 2.3623046278953552

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

Reply via email to