python / cpython

The Python programming language
https://www.python.org
Other
63.08k stars 30.21k forks source link

While Loop Bug on a game of 21, help! #51283

Closed aef4e1cd-ef21-4a80-a951-b8bf93bd0d34 closed 15 years ago

aef4e1cd-ef21-4a80-a951-b8bf93bd0d34 commented 15 years ago
BPO 7034
Nosy @ezio-melotti
Files
  • 21-2Player.py: 2-Player 21
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = None closed_at = created_at = labels = ['expert-IDLE', 'type-bug', 'invalid'] title = 'While Loop Bug on a game of 21, help!' updated_at = user = 'https://bugs.python.org/PixelHead777' ``` bugs.python.org fields: ```python activity = actor = 'PixelHead777' assignee = 'none' closed = True closed_date = closer = 'ezio.melotti' components = ['IDLE'] creation = creator = 'PixelHead777' dependencies = [] files = ['15019'] hgrepos = [] issue_num = 7034 keywords = [] message_count = 3.0 messages = ['93442', '93443', '93444'] nosy_count = 2.0 nosy_names = ['ezio.melotti', 'PixelHead777'] pr_nums = [] priority = 'normal' resolution = 'not a bug' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue7034' versions = ['Python 2.6'] ```

    aef4e1cd-ef21-4a80-a951-b8bf93bd0d34 commented 15 years ago

    I'm learning Python in Computer Class... and I've gone nuts trying to figure out why my code for a 2-player game of 21 (blackjack without the gambling connotation, I guess... not to mention my innacuracy of dealing only one card to start (which I know isn't affecting my glitched code)) has a glitched While loop...

    my while loop has a lot within it... which is what's making it so hard to debug...

    If you can tell me why my code is so bugged, I beg of you, let me know...

    (Oh, and my classmate is saying my code is too long for it... when I want it to look like a decent game and not a crapshoot. >.>)

    ezio-melotti commented 15 years ago

    The bug tracker is for Python bugs, not for helping people to find bugs in their programs.

    aef4e1cd-ef21-4a80-a951-b8bf93bd0d34 commented 15 years ago

    (New to the site, sorry...)