User Profile
Collapse
-
thanks again lol you are a life saver -
need help with a sorting problem
i need to sort a list of card like the rank
sample: ACE of h, ACE of d, ACE of c, ACE of s, 2, 2, 2, 2
this is my code so can anyone help me???
...Code:class Card: suitList = ["Hearts", "Diamonds", "Clubs", "Spades"] rankList = ["Invalid", "Ace", "2", "3", "4", "5", "6", "7", -
-
-
just need help with a card game
I got my code to work be the print out go's down on a angle is there anyway to stop this from happing. P.S sorry for taking up your time
...Code:class Card: suitList = ["Hearts", "Diamonds", "Clubs", "Spades"] rankList = ["Invalid", "Ace", "2", "3", "4", "5", "6", "7", -
they give this code to the student's to start the assignment it in the python book from john zelle if you look in there is it a racquetball game and we are told to change the code to play as a volley ball game
and way thank and sorry for taking your timeLeave a comment:
-
i cant get the score up to 15 but it's adding both player's to make 15
can some help
...Code:# volleyball.py # Simulation of a volleyball game. Illustrates use of random # numbers and functions to implement top-down design. import random, random def main(): Intro() probA, probB, n = getInputs() winsA, winsB = volleyball(n, probA, probB)Leave a comment:
-
i need help writing a program
Design and implement a program that simulates a single volley ball game. In volleyball, only the serving team can score, and if the receiving team win the rally, they gain the serve. Games are played to a score of 15, but must be won by at least 2 points. If the scores are closer, the game can continue indefinitely. Your simulation should prompt the user for the service win probability of each player and loop until the one player wins. Print out...
No activity results to display
Show More
Leave a comment: