cards.h 469 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Function headers for the command-line poker game.
  3. *
  4. * This file is Free Software released under the terms and conditions of the
  5. * GNU GPL v3
  6. *
  7. */
  8. #ifndef CARDS_H
  9. #define CARDS_H
  10. // the suit value is as follows:
  11. // 1-diamonds
  12. // 2-clubs
  13. // 3-hearts
  14. // 4-spades
  15. // i.e. some sort of resemblance to an actual playing deck
  16. struct
  17. playingcard {
  18. int value;
  19. int suit;
  20. };
  21. int
  22. describe_card(struct playingcard c);
  23. struct playingcard
  24. draw_card();
  25. #endif