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.

GameInfo.java 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.interfaces.Game;
  9. /**
  10. *
  11. * @author Chris
  12. */
  13. public abstract class GameInfo {
  14. public static enum GameType {
  15. STUD, DRAW, HOLDEM
  16. };
  17. public abstract String getName();
  18. public abstract GameType getGameType();
  19. public abstract int getNumPlayers();
  20. public abstract boolean usesBringIns();
  21. public abstract Game getGame(final int numplayers, final int bigblind, final int ante,
  22. final int raises);
  23. public static GameInfo[] getGames() {
  24. return new GameInfo[]{
  25. new TexasHoldEmInfo(),
  26. new PineappleInfo(),
  27. new CrazyPineappleInfo(),
  28. new RoyalHoldEmInfo(),
  29. new SuperHoldEmInfo(),
  30. new OmahaHoldEmInfo(),
  31. new OmahaHighLowInfo(),
  32. new CourchevelInfo(),
  33. new FiveCardDrawInfo(),
  34. new FiveCardStudInfo(),
  35. new SevenCardStudInfo(),
  36. new AsianFiveCardStudInfo(),
  37. };
  38. }
  39. }