Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python 10 or higher. have the game of gin rummy made in pyhon. full user interaction with visuals. there should be a starting screen where

python 10 or higher. have the game of gin rummy made in pyhon. full user interaction with visuals. there should be a starting screen where the player can choose if they want keep track of score or not. how the game works and how to play are below The Pack Gin Rummy is played with a 52 card deck, the wild cards (jokers) are not used. It is best to use two decks, so that while one player deals the cards, the opponent can shuffle the other deck. Rank of Cards The order of the cards, from highest to lowest, is: king (K), queen (Q), jack (J), ten, nine, eight, seven, six, five, four, three, deuce and ace. As for the value of the cards, the figure cards are worth 10 points and the other cards are worth the value indicated by their pips. Object of the Game Each player uses their hand to form combinations of three or more cards, to get more than the 100 points required to win the game before their opponent does so when played over several hands. The Deal The deck is spread out on the table and each player takes a card. The player who draws the highest card chooses where to sit and deals out ten cards to each player, one by one, leaving the deck with the remaining cards in the center of the table. The top card of the stock deck is placed face up next to it to start the discard pile. In the following games, the player who wins the previous game becomes the dealer. The Play The player who did not deal the cards starts the game, with the option to pick up the upturned card next to the stock deck, meaning that one of their cards must be discarded. If the said card is of no interest, the player passes without discarding. The opponent may, in turn, take that card and discard another, and if they are not interested, they pass without discarding. Then the first player can now take the top card off the stock deck, discarding another. The game continues, with each player in turn being able to take the top card off the stock deck or the discard pile, then discarding a card, but which may not be the same card that they just picked up from the discard pile. The game consists of players grouping the 10 cards in their hand to make minimum combinations of three cards of the same rank or runs of the same suit. The ace can be combined with the deuce but not with the king (K). A player can fold when their hand contains only unmatched cards worth a total value of no more than 10 points, making a Knock. As soon as a player discards their last card, they show all of their cards, announcing the number of points that are left without combining. It is not compulsory to Knock, a player can prolong the game in order to improve their hand. The best hand is to make Gin, consisting of placing down the ten cards combined. In either case, when a player folds, exposing all of their cards, the opponent does the same, having the opportunity to get rid of those cards that were left unmatched and being able to combine cards with those exposed by the player who Knocked or announced Gin. When a player announces Gin they win the partial game, whereas if a player Knocks, either that player or the opposing player can win it. The player wins if the value of their unmatched cards is less than the value of the opponents unmatched cards and the opponent wins if the value of their unmatched cards is equal to or less than that of the one that Knocked. The cards of the opponent to the one who announced Gin or Knocked are valued after having discarded the cards that they have not combined and that link with combinations of the hand laid down by the one declared Gin or Knock. How to Keep Score A game ends when sufficient partial games have been played to allow one player to get 100 or more points. The player who makes Gin, scores 20 points plus the value of the opponents unmatched cards. If the player who Knocks wins the game, they score the difference in the value of their unmatched cards with those of their opponent, while if the opponent wins, they score 10 points plus the difference in the value of the unmatched cards between both players. If there is no difference, the 10 point bonus remains. Once the game has finished, the players note down the following bonuses: 100 points for winning a game, 20 points for each partial game won and 100 points for winning all the rounds of a game without the opponent having won any

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Third International Conference Achids 2011 Daegu Korea April 2011 Proceedings Part 2 Lnai 6592

Authors: Ngoc Thanh Nguyen ,Chong-Gun Kim ,Adam Janiak

2011th Edition

3642200419, 978-3642200410

More Books

Students also viewed these Databases questions