Class PlayerPlayGameRoundPlan


  • public class PlayerPlayGameRoundPlan
    extends Plan
    This plan is executed for every game round.
    • Constructor Detail

      • PlayerPlayGameRoundPlan

        public PlayerPlayGameRoundPlan()
    • Method Detail

      • body

        public void body()
        Execute a plan.
        Specified by:
        body in class Plan
      • determineBet

        public int determineBet()
      • shouldDrawCard

        public boolean shouldDrawCard​(Card dealercard)
        Parameters:
        dealercard -
        Returns:
        True, if another card should be drawn.
      • failed

        public void failed()
        Called when something went wrong (e.g. timeout).
        Overrides:
        failed in class Plan