Question: Python coding please. Also if you could add comments that would be greatly appriciated. I have asked this a couple times now. Please use the

Python coding please. Also if you could add comments that would be greatly appriciated. I have asked this a couple times now. Please use the files in the link, escpecially proj06.py. Comments and indentation would help a lot too. The print statement needs to reflect that of the one above. All files that are to bu used are in that link. I would appreciate any help.

PLEASE indent and comment because I am very confused on what is goig on. PLEASE use the links in the description. PLEASE read and follow the requirements below. I have spent hours working and asked this more than oce and am still very much struggling. Some help would be greatly appriciated. Once more, PLEASE make the print statements the same. I have gotten answers that do not work because they either do not follow the base codes or they do not use the nessecary print statements. They must be identical print statements

There are base python codes that are used for this. Please use the base codes and grow off of the proj06.py one. They are found in the link below:

http://www.cse.msu.edu/~cse231/Online/Projects/Project06/

Python coding please. Also if you could add comments that would begreatly appriciated. I have asked this a couple times now. Please usethe files in the link, escpecially proj06.py. Comments and indentation would helpa lot too. The print statement needs to reflect that of theone above. All files that are to bu used are in that

Here are the ones in the link in case. Build off the proj06.py file proj06.py import cards def less_than(c1,c2): '''Return True if c1 is smaller in rank, True if ranks are equal and c1 has a 'smaller' suit False otherwise''' if c1.rank()  

cards.py

import random """ NOTE: If your terminal can't decode the unicode card suit symbols, set up the bash terminal language environment to "en_US.utf8", like this -- export LANG=en_US.utf8 You might also want to put this in your ~/.bashrc to make the change permanent accross the sessions. For tcsh or zsh, there are similar methods exist, please look them up. """ class Card( object ): """ Model a playing card. """ # Rank is an int (1-13), where aces are 1 and kings are 13. # Suit is an int (1-4), where clubs are 1 and spades are 4. # Value is an int (1-10), where aces are 1 and face cards are 10. # List to map int rank to printable character (index 0 used for no rank) rank_list = ['x','A','2','3','4','5','6','7','8','9','10','J','Q','K'] # List to map int suit to printable character (index 0 used for no suit) # 1 is clubs, 2 is diamonds, 3 is hearts, and 4 is spades # suit_list = ['x','c','d','h','s'] # for systems that cannot print Unicode symbols suit_list = ['x','\u2663','\u2666','\u2665','\u2660'] def __init__( self, rank=0, suit=0 ): """ Initialize card to specified rank (1-13) and suit (1-4). """ self.__rank = 0 self.__suit = 0 self.__face_up = None # Verify that rank and suit are ints and that they are within # range (1-13 and 1-4), then update instance variables if valid. if type(rank) == int and type(suit) == int: if rank in range(1,14) and suit in range(1,5): self.__rank = rank self.__suit = suit self.__face_up = True def rank( self ): """ Return card's rank (1-13). """ return self.__rank def value( self ): """ Return card's value (1 for aces, 2-9, 10 for face cards). """ # Use ternary expression to determine value. return self.__rank if self.__rank   CSE 231 Summer 2017 Programming Project #6 Edit on 6/19/17 a skeleton file is has been available on Mirmir and is now available in the same directory as this document (posted on 6/18) Edit on 6/20/17 we provide a cannonical function in the skeleton file to order cards so your output can more easily match the Mimir tests for Testl and Test2 Assignment Overview This assignment focuses on the design, implementation and testing of a Python program which uses classes to solve the problem described below. Note: you are using a class we provide; you are not designing a class It is worth 95 points (9.5% of course grade) and must be completed no later than 11:59 PM on Monday, June 26 Assignment Deliverable The deliverable for this assignment is the following file proj06.py -the source code for your Python program Be sure to use the specified file name and to submit it for grading via the Mirmir system before the project deadline. Assignment Background The goal of this project is to gain practice with use of classes and creating functions. You will design and implement a Python program which plays simplified Texas Hold'em Poker The program should deal two cards to two players (one card to each player, then a second card to each player), and then five community cards which players share to make their hands. A poker hand is the best five cards from the community cards plus the player's cards (i.e., best 5 out of 7 cards total). The goal of this assignment is to find the category of each player's hand and determine the winner The rules of this game are relatively simple and you can find information about the game and about the poker hands in the links below. Keep in mind that you will only find the category of the hands and all nine cards can be dealt at once (a real poker game deals cards in stages to allow for betting, but we aren't betting). http://en.wikipedia.org/wiki/Texas_holdem http://en.wikipedia.org/wiki/Poker_hands  CSE 231 Summer 2017 Programming Project #6 Edit on 6/19/17 a skeleton file is has been available on Mirmir and is now available in the same directory as this document (posted on 6/18) Edit on 6/20/17 we provide a cannonical function in the skeleton file to order cards so your output can more easily match the Mimir tests for Testl and Test2 Assignment Overview This assignment focuses on the design, implementation and testing of a Python program which uses classes to solve the problem described below. Note: you are using a class we provide; you are not designing a class It is worth 95 points (9.5% of course grade) and must be completed no later than 11:59 PM on Monday, June 26 Assignment Deliverable The deliverable for this assignment is the following file proj06.py -the source code for your Python program Be sure to use the specified file name and to submit it for grading via the Mirmir system before the project deadline. Assignment Background The goal of this project is to gain practice with use of classes and creating functions. You will design and implement a Python program which plays simplified Texas Hold'em Poker The program should deal two cards to two players (one card to each player, then a second card to each player), and then five community cards which players share to make their hands. A poker hand is the best five cards from the community cards plus the player's cards (i.e., best 5 out of 7 cards total). The goal of this assignment is to find the category of each player's hand and determine the winner The rules of this game are relatively simple and you can find information about the game and about the poker hands in the links below. Keep in mind that you will only find the category of the hands and all nine cards can be dealt at once (a real poker game deals cards in stages to allow for betting, but we aren't betting). http://en.wikipedia.org/wiki/Texas_holdem http://en.wikipedia.org/wiki/Poker_hands

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!