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.

FiveCardDrawInfo.java 895B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.config.games;
  8. import com.md87.cardgame.games.FiveCardDraw;
  9. import com.md87.cardgame.interfaces.Game;
  10. /**
  11. *
  12. * @author chris
  13. */
  14. public class FiveCardDrawInfo extends GameInfo {
  15. @Override
  16. public String getName() {
  17. return "Five Card Draw";
  18. }
  19. @Override
  20. public GameType getGameType() {
  21. return GameInfo.GameType.DRAW;
  22. }
  23. @Override
  24. public int getNumPlayers() {
  25. return 10;
  26. }
  27. @Override
  28. public boolean usesBringIns() {
  29. return false;
  30. }
  31. @Override
  32. public Game getGame(int numplayers, int bigblind, int ante, int raises) {
  33. return new FiveCardDraw(numplayers, bigblind, ante, raises);
  34. }
  35. }