home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / fun&games / cards / spades / spades.readme < prev    next >
Text File  |  1990-10-27  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Spades Version 1.1, by Greg Stelmack, June 7, 1990
  8.  
  9.      "Spades" is a program written to play the card game Spades. It may be
  10. run from the CLI or the Workbench. The files required to play are "Spades"
  11. and "Spades.images", and both must be in the same directory.
  12.      This is a one player version of Spades -- you play one hand, and the
  13. computer plays your partner and two opponents. The program plays by the
  14. following rules adopted by my friends and I here at the University of South
  15. Florida:
  16.      1) Four players are found, divided into two partnerships of two
  17. players each. Partners sit opposite each other.
  18.      2) A dealer is randomly picked. Each player receives 13 cards from a
  19. standard 52-card deck dealt clockwise starting with the player on the
  20. dealer's left. On successive hands, the deal passes to the left.
  21.      3) Starting to the left of the dealer, each player bids the number of
  22. tricks he feels his hand can take. Bidding passes clockwise. A
  23. partnership's bid is the total of the two partners' bids. A partnership
  24. must take this total number of tricks.
  25.      4) Play starts with the player to the left of the dealer and passes
  26. clockwise. The only rule about leading is that spades may not be lead until
  27. spades have been broken (i.e., played during a hand), unless a player holds
  28. only spades.
  29.      5) Players must follow suit -- if you have a card of the suit lead,
  30. you must play it. Otherwise, any suit may be played. Play ends with the
  31. player to the right of the leader. In other words, each player plays one
  32. card.
  33.      6) Highest card of the suit lead, or highest spade if a spade has been
  34. played, wins the trick. Cards rank 2 lowest through Ace highest. The trick
  35. winner scores one trick for his partnership and then leads for the next
  36. trick.
  37.      7) After all 13 tricks in a hand have been taken, scores are totaled.
  38. If a partnership takes at least as many tricks as they bid, they get 10
  39. points for each trick they bid and one point for each trick they took over
  40. their bid. If a partnership fails to take the number of tricks they bid,
  41. they lose 10 points for each trick they bid. Negative scores are possible.
  42.      8) Deal passes to the left for another hand. First team to 500, or the
  43. team with the highest score if both cross 500, wins.
  44.  
  45.      When the program is first started, the computer will randomly deal out
  46. cards to each player until the Ace of Spades is dealt. This player becomes
  47. the dealer. The computer will then deal the cards. You will see your hand
  48. at the bottom of the screen. Your partner sits across from you (at the top
  49. of the screen), and your opponents are to either side of you. The computer
  50. players will bid automatically. Their bids will appear as numbers in front
  51. of the positions at which they are sitting.
  52.      When it is your turn to bid, a black bid box will appear in the lower
  53. right-hand corner of the screen. Use the left mouse button to select your
  54. bid. Clicking on the plus sign will raise your bid one trick. Clicking on
  55. the minus sign will lower your bid one trick. Clicking on OK will accept
  56. your bid. Clicking the right mouse button will cause the computer to
  57. suggest a bid for you.
  58.      After all bids have been entered, the computer will pause for you to
  59. examine the bids. When you are ready to play, click any mouse button.
  60.      Cards will then be played. Cards played by a computer player will
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. appear in the appropriate position on the screen. When it is your turn to
  74. play, the computer will prompt you. Simply point at the card you want to
  75. play and click the left mouse button. Again, clicking the right mouse
  76. button will cause the computer to suggest a card for you to play (it will
  77. mark it with an asterisk).
  78.      Note that the computer will not let you play an illegal card. If
  79. nothing happens when you click, you are either trying to lead spades before
  80. they have been broken or you are not following the lead suit when you can.
  81.      After all cards in the trick have been played, the computer will place
  82. an asterisk in front of the winning card and update the trick count. If
  83. this was also the last trick in the hand, it will update the scores. It
  84. will then pause for you to look at all the cards that were played. When you
  85. are ready to continue, click any mouse button.
  86.      This cycle will continue until a winner is found. The program will
  87. then display a final score screen and ask whether or not you would like to
  88. play again. Clicking YES will cause the game to start over. Clicking NO
  89. will bring you back to the environment you started the game from. Note that
  90. the game may be quit at any time by clicking the window close box at the
  91. upper left of all game windows.
  92.  
  93. For Programmers:
  94.      The source code should be included with the program. The game is
  95. written in C and compiled using Lattice C V5.04. I hope that anyone out
  96. there interested in designing their own card games will find this code
  97. useful. Note that the "Spades.images" file contains all the data necessary
  98. to draw the cards. The reader routine is in the procedure "main". Feel free
  99. to use any or all of the code or images in your own programs.
  100.  
  101. Copyright Notice:
  102.      This program is copyright 1990 by Gregory M. Stelmack. However, I give
  103. permission for anyone to freely distribute this program as long as this
  104. file and the by-line in the title bar of the game remains. Also, you may
  105. use any of the code for your own programs, but please remember to give
  106. credit where credit is due. I cannot be held responsible for damage that
  107. occurs as a result of the use/misuse of this program.
  108.      If you find the game enjoyable or the code useful, I do request a
  109. small donation (say $5) to cover my costs (computer, compiler, tools, etc.)
  110. -- but only if you find it useful or enjoyable. My address is:
  111.                    Gregory M. Stelmack
  112.                    USF Box 1510
  113.                    Tampa, Fl 33620-1510
  114. Feel free to send any comments or suggestions to the above address.
  115. E-mail to: stelmack@sol.csee.usf.edu
  116. BBS: TBAG1 and Simply Amazing! in Tampa: GREG STELMACK
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.