Java poker implementation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Pineapple.java 892B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) Chris 'MD87' Smith, 2007. All rights reserved.
  3. *
  4. * This code may not be redistributed without prior permission from the
  5. * aforementioned copyright holder(s).
  6. */
  7. package com.md87.cardgame.games;
  8. /**
  9. * Implements a standard (local) game of Pineapple.
  10. *
  11. * @author chris
  12. */
  13. public class Pineapple extends TexasHoldEm {
  14. public Pineapple(int numplayers, int bigblind, int ante, int raises) {
  15. super(numplayers, bigblind, ante, raises);
  16. }
  17. @Override
  18. protected void dealPlayerCards() {
  19. dealCard(players.get((dealer + 1) % numplayers), false);
  20. dealCard(players.get((dealer + 1) % numplayers), false);
  21. dealCard(players.get((dealer + 1) % numplayers), false);
  22. doDrawRound(players.get((dealer + 1) % numplayers), 1, 1, false);
  23. }
  24. @Override
  25. public int holeCardCount() {
  26. return 3;
  27. }
  28. }