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 814B

12345678910111213141516171819202122232425262728293031
  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;
  8. /**
  9. *
  10. * @author chris
  11. */
  12. public enum Achievement {
  13. ALL_IN_WIN("All in", "Go all in and win the hand"),
  14. TOURNAMENT_WIN("Winner", "Beat at least three other players to win a tournament"),
  15. FLUSH("Flushed", "Make a five-card flush"),
  16. HIGH_LOW("High/low", "Win both the high and low pots in a game of Omaha High/Low"),
  17. STREAK("Winning streak", "Win five consecutive hands in a tournament")
  18. ;
  19. protected String name;
  20. protected String desc;
  21. Achievement(final String name, final String desc) {
  22. this.name = name;
  23. this.desc = desc;
  24. }
  25. }