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.

SuperHoldEm.java 813B

123456789101112131415161718192021222324252627282930313233
  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) Super Hold'em game.
  10. *
  11. * @author Chris
  12. */
  13. public class SuperHoldEm extends TexasHoldEm {
  14. public SuperHoldEm(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. }
  23. @Override
  24. public int holeCardCount() {
  25. return 3;
  26. }
  27. }