User Profile

Collapse

Profile Sidebar

Collapse
codie
codie
Last Activity: May 25 '07, 01:58 PM
Joined: May 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • codie
    replied to need help with a sorting problem
    thanks again lol you are a life saver
    See more | Go to post

    Leave a comment:


  • codie
    started a topic need help with a sorting problem

    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",
    ...
    See more | Go to post

  • codie
    replied to just need help with a card game
    thank you so much i need that help
    See more | Go to post

    Leave a comment:


  • codie
    replied to just need help with a card game
    o sorry and i need to add spaces between them as well :-(
    See more | Go to post

    Leave a comment:


  • codie
    started a topic just need help with a card game

    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",
    ...
    See more | Go to post

  • codie
    replied to i need help writing a program
    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 time
    See more | Go to post

    Leave a comment:


  • codie
    replied to i need help writing a program
    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)
    ...
    See more | Go to post
    Last edited by bartonc; May 18 '07, 04:43 AM. Reason: added [code][/code] tags

    Leave a comment:


  • codie
    started a topic i need help writing a program

    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...
    See more | Go to post
No activity results to display
Show More
Working...