Interface DoublingDecision

All Known Implementing Classes:
DoublingDecision.Offer, DoublingDecision.Response

public sealed interface DoublingDecision permits DoublingDecision.Offer, DoublingDecision.Response
An authoritative stake-doubling decision awaiting bot action.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    An offer decision awaiting the turn owner's choice to offer a double or roll.
    static final record 
    A response decision awaiting the responder's choice to accept or decline an offer.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Pattern
    Regular expression pattern for a valid decision id.
    static final String
    Constant decision kind for an offer opportunity.
    static final String
    Constant decision kind for an offer response.
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    Returns the opaque decision identifier spanning the doubling episode.
    Returns the decision kind, exactly offer or response.
    long
    Returns the proposed doubled stake in whole PLAY_CREDIT units.
    Returns the seat required to answer this decision, exactly White or Black.
  • Field Details

    • ID_PATTERN

      static final Pattern ID_PATTERN
      Regular expression pattern for a valid decision id.
    • KIND_OFFER

      static final String KIND_OFFER
      Constant decision kind for an offer opportunity.
      See Also:
    • KIND_RESPONSE

      static final String KIND_RESPONSE
      Constant decision kind for an offer response.
      See Also:
  • Method Details

    • id

      String id()
      Returns the opaque decision identifier spanning the doubling episode.
      Returns:
      the decision id
    • kind

      String kind()
      Returns the decision kind, exactly offer or response.
      Returns:
      the decision kind
    • seat

      String seat()
      Returns the seat required to answer this decision, exactly White or Black.
      Returns:
      the decision seat
    • proposedStake

      long proposedStake()
      Returns the proposed doubled stake in whole PLAY_CREDIT units.
      Returns:
      the proposed stake