A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

really stuck at ps6, problem#3. play_game function doesn't work properly, example of screen: Current Hand: a g k l o n r It took 2.40 seconds to provide an answer ' kalong ' earned 4.59 points. Current Score: 4.59 Current hand: r Enter n to deal a new hand, r to replay the last hand, or e to end game: (it never finished the hand), but when I run play_hand(same argmts): Current Hand: a g k l o n r It took 2.33 seconds to provide an answer ' kalong ' earned 4.71 points. Current Score: 4.71 Current hand: r '"." received. Game over. Total Score: 4.71' code: http://codepad.org/3YET4y4X

  • This Question is Closed
  1. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    basically, when play_hand is called via play_game it doesn't work properly since after finishing the first word will exit the function as if it had ended the game; but when play_hand is called directly it runs as expected. Any ideas?

  2. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I deleted and reposted the question 'cos code wasn't working and don't know how to edit question. Bcwo made me realize it, txs.

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.