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.

Achievement.java 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) Chris 'MD87' Smith, 2007-2008. 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;
  8. /**
  9. * An enumeration of achievements that may be earnt by the player.
  10. *
  11. * @author chris
  12. */
  13. public enum Achievement {
  14. /** Win a hand after going all in. */
  15. ALL_IN_WIN("All in", "Go all in and win the hand"),
  16. /** Win a tournament. */
  17. TOURNAMENT_WIN("Winner", "Beat at least three other players to win a tournament"),
  18. /** Get a flush. */
  19. FLUSH("Flushed", "Make a five-card flush"),
  20. /** Win both high and low pots. */
  21. HIGH_LOW("High/low", "Win both the high and low pots in a game of Omaha High/Low"),
  22. /** Win five hands in a row. */
  23. STREAK("Winning streak", "Win five consecutive hands in a tournament"),
  24. /** Win a hand with no pair. */
  25. BEST_OF_WORST("Best of the worst", "Win a hand with the highest 'no pair' hand"),
  26. /** Go from last place to first. */
  27. COMEBACK("Comeback", "Win a tournament after being last at some point"),
  28. /** Poker addict. */
  29. ADDICT("Addicted to poker", "Play 100 tournaments");
  30. protected String name;
  31. protected String desc;
  32. Achievement(final String name, final String desc) {
  33. this.name = name;
  34. this.desc = desc;
  35. }
  36. }