pizzafoki.blogg.se

Scoring gin rummy
Scoring gin rummy














I am most definitely proud that the program actually functions as expected when inputs are correctly used. I also utilized the skills I learned from taking Python classes and lessons into my own script. I'm proud to have developed my first Python script from a blank canvas.

#SCORING GIN RUMMY HOW TO#

Another issue I have is how to display the rules of the game, since it contains certain parts of scoring. In addition, I had difficulties making sure that the scores were accurate and would follow through the code when expected, such as when bonuses were being calculated for "gin" and after-game situations.

scoring gin rummy

My biggest challenge was saving the new values created by the function onto the global variables so that each round's score could be added to the total score, rather than reverting back to 0 each round. The code also allows user to type in their names to make the module easier to use.

scoring gin rummy

It consists of a few functions that are run on loop until one player wins the game. I used Python 2.7 to develop this module. The players still need to understand the rules, but all of the calculations are made based on user inputs about the number of deadwood cards in the player's hand. This module is designed to make the pain of scoring out of the game. The scoring in the game becomes tricky very quickly. However, I am always frustrated when I can't keep score accurately during the game. I enjoy playing card games, especially gin rummy.














Scoring gin rummy